fork download
  1. skills = {"Power": 0,"Magic": 0, "Speed": 0}
  2. points = 30
  3. choice = 100
  4. while choice != 0:
  5. print(
  6. """
  7. 0 - Exit
  8. 1 - Show skills
  9. 2 - Use some points
  10. 3 - Take some points
  11. """
  12. )
  13. choice = int(input("Your choice: "))
  14. print()
  15. if choice == 0:
  16. print("Good luck!")
  17. elif choice == 1:
  18. print(skills.keys())
  19. elif choice == 2:
  20. print("You have", points ,"points.")
  21. skills.items()
  22. input("The end")
Runtime error #stdin #stdout #stderr 0.02s 44680KB
stdin
Standard input is empty
stdout
	0 - Exit
	1 - Show skills
	2 - Use some points
	3 - Take some points
	
Your choice: 
stderr
Traceback (most recent call last):
  File "<builtin>/app_main.py", line 75, in run_toplevel
  File "prog.py", line 13, in <module>
    choice = int(input("Your choice: "))
EOFError