Text Size
Text Size
Exit Full Screen
Python Mini
Show
Source Code
View Source Code in Full Screen
Open in New Tab
import time print "welcome to my triva game!" time.sleep (1) print "" q1=raw_input("Who is the main charactor of home alone") q2=raw_input("What did Kevin thorw off the building and hit someone's head?") q3=raw_input("What did he do to the rope when they were climbing down?") #Kevin if q1 == "kevin" : print "you are correct" else: print "wrong! The correct answer is Kevin" if q2 == "A brick" : print "you are correct" else: print"wrong! the correct answer is A brick" if q3 == "lit it on fire": print "you are correct" else: print"wrong the correct answer is lit it on fire"
Trivia.py
( around 20 lines python code )
Published By:
BM4518
Published on
2023-01-06T17:22:05Z
Python Mini
- an
OYOclass
application,
own your own class today
.
Run
Result
×
Error message shows here