Answers for "python input. yes or no"

1

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...")
Posted by: Guest on February-25-2022

Python Answers by Framework

Browse Popular Code Answers by Language