Untitled
unknown
python
3 years ago
293 B
4
Indexable
dwarves = [None]*7 i = 0 while True : try: dwarves[i]= input() if dwarves[i] == "0": break i += 1 except IndexError: print("Sorry, you entered too many dwarves.") break print(dwarves)
Editor is loading...