parameters: (self, head)
return_statement: return head
docstring: :type head: ListNode
          :rtype: ListNode
docstring_summary: :type head: ListNode
          :rtype: ListNode
docstring_tokens: : type head : ListNode : rtype : ListNode
function: def oddEvenList(self, head):
          """
          :type head: ListNode
          :rtype: ListNode
          """
          if not head:
              return head
          evenhead = head.next
          odd, even = head, evenhead
          while even and even.next:
              odd.next = odd.next.next
              even.next = even.next.next
              odd, even = odd.next, even.next
          odd.next = evenhead
          return head
function_tokens: def oddEvenList ( self , head ) : if not head : return head evenhead = head . next odd , even = head , evenhead while even and even . next : odd . next = odd . next . next even . next = even . next . next odd , even = odd . next , even . next odd . next = evenhead return head