Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to do an if input = python

start_over = 1

question = input("Do you wish to try again? y/n: ")
if question == "y":
    start_over -= 1
else:
    raise SystemExit
 
PREVIOUS NEXT
Tagged: #input #python
ADD COMMENT
Topic
Name
2+3 =