0

Im making a game that is based just on typing, kind of like a textRPG (keep in mind ive just started to learn python) pretty much its just

GoOutside = "You go outside, would you like to go to the town or into the forest?/ Town - Go into the town/ Forest - Go into the forest

When i compile this into an actual program it closes immediately, is there a way to make it not close?

SquidR
  • 27
  • 4
  • If you need to get the user's input use the function input() and that will make the program wait for the user's input – Cezar Todirisca Jun 16 '21 at 23:27
  • What does "compile this into an actual program" mean? A python script does not need compiling. –  Jun 17 '21 at 00:10
  • first run code manually in console/terminal and you will have open console after ending code. Maybe you get some error message. And if user has to put some text then you need ie. `result = input("Select direction: ")` to get it. BTW: if you write number `123` then it gives string `"123"` and you have to convert it `int(result)` if you need number. – furas Jun 17 '21 at 01:11

0 Answers0