0
What is wrong with this code?
It's supposed to add variables to "actions" until it reaches "action_ammount" and print the list. Here's the code: print("How many actions do you want?") action_ammount = int(input()) i = 1 actions = [] while i <= action_ammount: actions.append(1) print(actions)
2 Answers
+ 1
you'll need to increase the value of i or the condition will never met.
simply adding i+=1 should fix it
0
Totally forgot, thanks



