QUIZ COMPETITION CODE IN PY CHARM

 quiz competition code 

INPUT.....................................

print("welcome to the all rounder quiz ")

playing=input("khelna chahteh ho ")
if playing != "yes":
quit()

print("lets go")
score = 0

answer = input("what is the full form of pc ")
if answer == "personal computer":
print("sahi jawab :)")
score += 1
else:
print("galat jawab :( try again later ")

answer = input("are you a girl ")
if answer == "yes":
print("sahi jawab :)")
score += 1
else:
print("galat jawab :( try again later")

answer = input("what is h2o")
if answer == "water":
print("sahi jawab :)")
score += 1
else:
print("galat jawab :( try again later")

print("you get " + str(score) + "question correct!")
print("you get " + str(score/3)*100 + "%")
RESULT.......................................
 welcome to the all rounder quiz 
khelna chahteh ho yes
lets go
what is the full form of pc personal computer
sahi jawab :)
are you a girl yes
sahi jawab :)
what is h2owater
sahi jawab :)
you get 3question correct!
you get 1.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.01.0%
ARIHANT JAIN

i am arihant jain and i am a student

Post a Comment (0)
Previous Post Next Post