Python won't launch -


i new python , me , friend making pokémon themed text adventure! we've made code start, python launch second when runs. ideas?

trainer=raw_input("hello, professor oak. today may pick pokémon. first, name?") starterpokemons= ['charmander','squirtle','bulbasaur'] print("hello" + user +"here, pick " + starterpokemons[0] + "; fire type," + starterpokemons[1] + "; water type or " + starterpokemons[2]"; grass type.") choice = input("select pokémon: ") if choice in starterpokemons: starterpokemon = items[choice] else: print("uh oh, not starter pokémon") 

i'm guessing you're using windows , running script opening rather through console. when script has finished executing close window. try adding end of script make stay:

raw_input('press enter exit') 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -