bruh1214

Untitled

Oct 19th, 2021 (edited)
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. def undo(l,lst):
  2. if len(l) == 0:
  3. print("There are no items")
  4. else:
  5. for el,pachet in enumerate(l):
  6. l.pop()
  7. l.append(lst[el])
Add Comment
Please, Sign In to add comment