title: What is sytanx for -> in linked list python
body: <p>Hey everyone I am trying to print (2->None, 3) in the linked list below, but am getting a syntax error. can someone please help me with this syntax cannot find on google for some reason. Code below: </p>
  
  <pre><code>class Node(object):
  
     def __init__(self, data=None, next_node=None):
         self.data = data
         self.next = next_node
  
  def Insert(head, data):
      if head == None:
          head = Node(data)
          print(head)
      else: 
          current = head 
          while current.next != None: 
              current = current.next 
          current.next = Node(data)
      return head
  print Insert(2-&gt;None, 3) # -&gt; is bringing a syntax error, how do I write this in python 2.7?
  </code></pre>