davegimo

test

Mar 26th, 2019
139
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. l = [1,2,3,4]
  2. print(l)
  3.  
  4. i = 0
  5. while i < len(l)-1:
  6.     j = 0
  7.     left = ""
  8.     right = ""
  9.     while j < len(l):
  10.        
  11.         if j <= i:
  12.             left += str(l[j]) + "/"
  13.         else:
  14.             right += str(l[j]) + "/"
  15.  
  16.         j += 1
  17.  
  18.  
  19.     print("index i = " + str(i))
  20.     print("left = " + left)
  21.     print("right = " + right)
  22.     print("------")
  23.     i += 1
RAW Paste Data