Text Size
Text Size
Exit Full Screen
Python Mini
Show
Source Code
View Source Code in Full Screen
Open in New Tab
t=input("Answer using only number keys") x=input("How many colors are in the rainbow?") if x == "7": z=input("How many months are in a year?") print("correct") else: print("wrong") if z =="12": print "correct" else: print "wrong" w=input("How many colors are on the French flag?") if w == "3": print "correct" else: print "wrong" s=input("How many days are in a week?") if s == "7": print "correct" else: print "wrong" a=input("How many letters are in the alphabet?") if a == "26": print "correct" else: print "wrong" b=input("How many states are there in the United States?") if b == "50": print "correct" else: print "wrong" c=input("How many stripes are on the American Flag?") if c == "13": print "correct" else: print "wrong"
TriviaCodingProject.py
( around 36 lines python code )
Published By:
BM4209
Published on
2021-12-17T18:54:43Z
Python Mini
- an
OYOclass
application,
own your own class today
.
Run
Result
×
Error message shows here