Question1 = input("Is a pineapple edible? ") if Question1 == "Yes": print("Correct") else: print("Wrong") Question2 = input("Is a tree edible? ") if Question2 == "Sometimes": print("Correct") else: print("Wrong, some trees are edible") Question3 = input("Is a plant pot edible? ") if Question3 == "No": print("Correct") else: print("Wrong") Question4 = input("Is a fish edible? ") if Question4 == "Not always": print("Correct") else: print("Wrong, not all fish are edible >:|") Question5 = input("Is a shard of glass edible? ") if Question5 == "No": print("Correct") else: print("Wrong, you really shouldn't eat glass")
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question