grandfathermagic

Proof of concept - pokemon

Apr 27th, 2020
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. l = [[1, 2, 3, 4],['a', 'b', 'c', 'd'], [5, 6, 7, 8] ]
  2. #del l[0][1]
  3. #print(l)
  4. i = 0
  5. j = 1
  6. while i < len(l):
  7.     print(f"{l[i]}This is my {i}, and this is {l[i][0]} ")
  8.     del l[i][0]
  9.     print(f"{l[i]}This is my {i}, and this is {l[i][0]} ")
  10.     i += 1
Advertisement
Add Comment
Please, Sign In to add comment