cs50/agree.py

8 lines
134 B
Python

s = input("Do you agree? ")
s = s.lower()
if s in ["y", "yes"]:
print("Agreed.")
elif s in ["n", "no"]:
print("Not agreed.")