Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
quiz1
#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() 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) if ans1==list[0]: print(c) counte+=1 else: print(i) countee+=1 if ans2==list[1]: print(c) counte+=1 else: print(i) countee+=1 if ans3==list[2]: print(c) counte+=1 else: print(i) countee+=1 if ans4==list[3]: print(c) counte+=1 else: print(i) countee+=1 if ans5==list[4]: print(c) counte+=1 else: print(i) countee+=1 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))
run
|
edit
|
history
|
help
0
matrix with random numbers
Юра и заселение
.....✓[Guess the number]®®®®®®®•$$$$✓.....
10
Christmas tree
pip install pyowm==2.7.1
PyGuessTheNum2
1
PySuper
Va