python - Why does this script close immediately even though I ask for input? -


i can't output in python code.

import random die1=random.randrange(5) die2=random.randrange(5) total=die1+die2 input=("\npress enter key exit.") 

the black window closes when opened

you not calling input(); assigning string name input instead.

remove =:

input("\npress enter key exit.") 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -