Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
quizcorrect
#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 recored") time.sleep(2) if ans1==list[0]: print(c) counte+=1 else: print(i) countee+=1 list1.append(ans1) if ans2==list[1]: print(c) counte+=1 else: print(i) countee+=1 list1.append(ans2) if ans3==list[2]: print(c) counte+=1 else: print(i) countee+=1 list1.append(ans3) if ans4==list[3]: print(c) counte+=1 else: print(i) countee+=1 list1.append(ans4) if ans5==list[4]: print(c) counte+=1 else: print(i) 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
Python3: Class I : Person (Simple)
kenken1
9th jan quiz2
abc
Fiboncaci series in recursion
aaa
Eje2_Python_201169275
MBTI
check this converting week number (int) into week day name (string) [solved]
one