Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
counte
#python 3.5.2 print ("Hello, world!") import time counte = 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() list1.append(ans1) print("what is the second capital of Maharashtra") ans2=input() list1.append(ans2) print("which Sweet is famous in Pune") ans3=input() list1.append(ans3) print("What's the factorial of NO 5") ans4=int(input()) list1.append(ans4) print("which city is known as Pink city") ans5=input() list1.append(ans5) print("well done, your answers are been recored") time.sleep(2) def check(ans1,ans2,ans3,ans4,ans5,list,counte): if ans1==list[0]: print(c) counte+=1 print("counter value",counte) else: print(i) if ans2==list[1]: print(c) counte+=1 print("counter value",counte) else: print(i) if ans3==list[2]: print(c) counte+=1 print("counter value",counte) else: print(i) if ans4==list[3]: print(c) counte+=1 print("counter value",counte) else: print(i) if ans5==list[4]: print(c) counte+=1 print("counter value",counte) else: print(i) check(ans1,ans2,ans3,ans4,ans5,list,counte) print("current value of counter is",counte) def check1(counte): if counte==5: return "your all ans are correct" else: return "your",counte,"ans are correct" print(check1(counte))
run
|
edit
|
history
|
help
0
My cousin asked for this will never forgive her
PyAnchorAlter
Ej2_PYTHON_203700377.
wordsentencething
lower and upper alphabets checker
IP Networks splitting calculator
Calculate Volume of Sphere
Lesson#6
Lesson6 part b
0403_diamond