Text Size
Text Size
Exit Full Screen
Python Mini
Show
Source Code
View Source Code in Full Screen
Open in New Tab
Notice = raw_input("All answers MUST be in LOWERCASE ONLY! Type in 'ok' to proceed") Notice = str(Notice) Q1 = raw_input("The name of the time period lasting from 8000 B.C.E. to 4000 B.C.E. when humans first developed agriculture and formed permanent settlements is the... ?") Q1 = str(Q1) Q2 = raw_input("What was the first metal humans learned to work?") Q2 = str(Q2) Q3 = raw_input("What was an early river valley civilization that was the first civilization in Mesopotamia?") Q3 = str(Q3) Q4 = raw_input("what was the first system of written language, developed by the Sumerians around 3500 B.C.E.?") Q4 = str(Q4) Q5 = raw_input("What Babylonian king introduced the most famous early code of law in human history?") Q5 = str(Q5) Q6 = raw_input("What early civilization emerged in the Indus River Valley in 2500 B.C.E. and was a prosperous urban society?") Q6 = str(Q6) Q7 = raw_input("What river valley was the home of the early Shang Dynasty in China, which lasted between around 1500 and 1050 B.C.E.? Include the word 'river' in your answer") Q7 = str(Q7) Q8 = raw_input("Who were the group of nomads who periodically threatened the early civilizations of Mesopotamia, the Middle East and India between about 1500 and 500 B.C.E.?") Q8 = str(Q8) Q9 = raw_input("What were the massive temples built by the Sumerians where religious activities were conducted?") Q9 = str(Q9) Q10 = raw_input("What peoples were a Semitic group who settled in the far Eastern Mediterranean region in around 1200 B.C.E. and were significant as one of the earliest peoples to be monotheistic, or believe in a single god?") Q10 = str(Q10) if Notice == "ok": print "ok" if Q1 == "neolithic": print "Question 1: Correct!!!" else: print "Question 1: You are wroooonggg!!!!!" if Q2 == "copper": print "Question 2: Correct!!!" elif Q2 == "bronze": print "Close, but not quite it!" else: print "Question 2: Incorrect!!!" if Q3 == "sumer": print "Question 3: Correct!!!" else: print "Question 3: Your answer is inaccurate!!!" if Q4 == "cuneiform": print "Question 4: Correct!!!" else: print "Question 4: False!!!" if Q5 == "hammurabi": print "Question 5: Correct!!!" else: print "Question 5: Invalid answer!!!" if Q6 == "harappa": print "Question 6: Correct!!!" else: print "Question 6: Your answer must be mistaken!!!" if Q7 == "yellow river": print "Question 7: Correct!!!" else: print "Question 7: Untrue response!!!" if Q8 == "indo-europeans": print "Question 8: Correct!!!" else: print "Question 8: I'm afraid this isn't it." if Q9 == "ziggurats": print "Question 9: Correct!!!" else: print "Question 9: What you wrote is wrong!!!" if Q10 == "hebrews": print "Question 10: Correct!!!" else: print "Question 10: You did not fulfill this question!!!" #answers need to be case sensitive. Such as all caps or all lowercase.
ch_triviaquiz.py
( around 67 lines python code )
Published By:
EM5700
Published on
2019-09-17T01:21:31Z
Python Mini
- an
OYOclass
application,
own your own class today
.
Run
Result
×
Error message shows here