Console closes


#1

i took my complete code and put it into a .py file i made and when i play the game and either sink the ship or run out of turns it just closes the console. is there a way to make it wait a little so i can see the end message instead of closing instantly?


#2

you can add

raise SystemExit("XXXX")

or just add

raw_input("XXX")

at the end of your code.