Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
quiz3
#python 3.5.2 print ("Hello, world!") import time counte = 0 countee=0 list=["mumbai","nagpur","barfi",120,"jaipur"] list1=[] c="correct" i="incorrect" print("questions and answer quiz") # name=input("what's your name") # print(name," great, now enter your further details") # roll=int(input("enter your roll no")) # print("your quiz is going to start") print("What is the capital of Maharashtra") ans1=input() print("what is the second capital of Maharashtra") ans2=input() print("which Sweet is famous in Pune") ans3=input() print("What's the factorial of NO 5") ans4=int(input()) print("which city is known as Pink city") ans5=input() print("well done, your answers are been recorded") time.sleep(2) if ans1==list[0]: counte+=1 else: countee+=1 list1.append(ans1) if ans2==list[1]: counte+=1 else: countee+=1 list1.append(ans2) if ans3==list[2]: counte+=1 else: countee+=1 list1.append(ans3) if ans4==list[3]: counte+=1 else: countee+=1 list1.append(ans4) if ans5==list[4]: counte+=1 else: countee+=1 list1.append(ans5) def check1(count,countee): if counte==5: return "your all ans are correct" else: return "your",counte,"ans are correct and",countee,"ans are wrong" print(check1(counte,countee)) for items in list1: print("wrong ans",items)
run
|
edit
|
history
|
help
0
Lesson 2
X
chickens,cows,pigs
self "keyword"
try123
solving a linear system of equations
2.1.19
restraunt score
square cube
1