Console closes


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?


you can add

raise SystemExit("XXXX")

or just add


at the end of your code.