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
Post a Comment