Search the Community
Showing results for tags 'python course'.
Hello, I'm following video, and for some reason IF statement doesn't work properly: def flow_control(): answer = input("Do you want to learn about multiline text strings? (yes or no)") #if answer == "yes" or answer == "y": if answer == ("yes" or "y"): display_lesson() else: use_time() print("End program") Commented out IF statement works perfectly well, but 2nd one work only for "yes". How can i make it work?