Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python input. yes or no

yes_or_no = input("yes or no")
if yes_or_no == "no":
    print("you choose no")
elif yes_or_no == "yes":
    print("you choose yes")
else:
    print("that is not a answer. sorry...")
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
2+5 =