how to do an if input = python code example
Example 1: 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
Example 2: how to get a user input in python
a = input("what is your input")