Advertisement
bruh1214

Untitled

Oct 19th, 2021
83
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):
  2. undolist = l[1]
  3. if not undolist:
  4. print("There are no packages!")
  5. l_total = undolist[-1]
  6. undolist = undolist[:-1]
  7. l[0] = l_total
  8. l[1] = undolist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement