Advertisement
facedwarrior193

store items in a table

Jun 11th, 2022
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. content  = True
  2. yes = list()
  3. while content == True:
  4.   a = input("enter anything(n) to stop\n")
  5.   if a == "n":
  6.     for i in range(len(yes)):
  7.       print(yes[i])
  8.   else:
  9.     yes.insert(len(yes)+1,a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement