Hi! So today I started coding with Python, and I wanted to create this easy code, where you need to answer with: yes or no. It's not working, everytime, when I type "no" it always shows me "good answer!". How do I fix that?
fruits = input("do you like fruits?: ")
yes = input
no = input
if yes:
print("good answer!")
else:
print("bad answer!")I don't really now what I am doing.
buran write Dec-10-2020, 12:49 PM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
