from __future__ import print_function


class Node:
  def __init__(self, value, next=None):
    self.value = value
    self.next = next

  def print_list(self):
    temp = self
    while temp is not None:
      print(str(temp.value) + " ", end='')
      temp = temp.next
    print()


def reorder(head):
  # TODO: Write your code here
  return


def main():
  head = Node(2)
  head.next = Node(4)
  head.next.next = Node(6)
  head.next.next.next = Node(8)
  head.next.next.next.next = Node(10)
  head.next.next.next.next.next = Node(12)
  reorder(head)
  head.print_list()


main()
@@ -45,16 +45,18 @@
 s Node:%0A
+  
   def __
@@ -87,16 +87,20 @@
 =None):%0A
+    
     self
@@ -114,16 +114,20 @@
 = value%0A
+    
     self
@@ -142,16 +142,18 @@
 next%0A%0A  
+ 
+ 
 def prin
@@ -166,16 +166,20 @@
 (self):%0A
+    
     temp
@@ -186,16 +186,20 @@
  = self%0A
+    
     whil
@@ -220,24 +220,30 @@
 None:%0A      
+ 
+     
 print(str(te
@@ -269,24 +269,30 @@
 d='')%0A      
+     
+ 
 temp = temp.
@@ -296,16 +296,20 @@
 mp.next%0A
+    
     prin
@@ -339,37 +339,8 @@
 :%0A  
-# TODO: Write your code here%0A
   re
@@ -358,16 +358,18 @@
 main():%0A
+  
   head =
@@ -377,16 +377,18 @@
 Node(2)%0A
+  
   head.n
@@ -401,16 +401,18 @@
 Node(4)%0A
+  
   head.n
@@ -428,24 +428,26 @@
 = Node(6)%0A  
+ 
+ 
 head.next.ne
@@ -464,16 +464,18 @@
 Node(8)%0A
+  
   head.n
@@ -504,16 +504,18 @@
 ode(10)%0A
+  
   head.n
@@ -549,16 +549,18 @@
 ode(12)%0A
+  
   reorde
@@ -567,16 +567,18 @@
 r(head)%0A
+  
   head.p
@@ -593,12 +593,13 @@
 t()%0A%0A%0Amain()
+%0A

fix formatting