Akshant's Project
The Cricket Quiz
About Akshant
Hello, my name is Akshant Mukesh. I study in grade 7, NMS - DPS Bahrain and I am 12 years old.
My hobbies are playing cricket and other sports.
Akshant's project details:
It's a quiz based on one of the famous and fun sport, Cricket. This quiz has 8 different questions with many options to choose from. This quiz includes many hard questions, lets see if you all can beat it.
Controls:
type 1, 2, 3, 4 for choosing the answer
score = 0
score = int(score)
#Ask user for their name
name = input("What is your name?")
name = name.title()
print("""Hello {}, welcome to Quiz night!
You will be presented with 8 questions related to cricket.
Enter the appropriate number to answer the question
Good luck!""".format(name))
print("**********************")
#Question1
print("""Who was india's first captain?
1. Kapil Dev
2. CK. Nayudu
3. sachin Tendulkar
4. Mohammed Azharuddin""")
answer1 = "2"
response1 = input("Enter your answer as 1, 2, 3 or 4:")
if (response1 != answer1):
print("Sorry, that is incorrect!")
else:
print("Well done! " + response1 + " is correct!")
score = score + 1
print("**********************")
print("Your current score is " + str(score) + " out of 8")
print("**********************")
#Question2
print("""Who won the 1983 world cup?
1. Australia
2. England
3. India
4. South Africa""")
answer2 = "3"
response2 = input("Enter your answer as 1, 2, 3 or 4:")
if (response2 != answer2):
print("Sorry, that is incorrect!")
else:
print("Well done! " + response2 + " is correct!")
score = score + 1
print("**********************")
print("Your current score is " + str(score) + " out of 8")
print("**********************")
#Question3
print("""Who won the cricket world cup 5 times?
1. England
2. India
3. Australia
4. South Africa""")
answer3 = "3"
response3 = input("Enter your answer as 1, 2, 3 or 4:")
if (response3 != answer3):
print("Sorry, that is incorrect!")
else:
print("Well done! " + response3 + " is correct!")
score = score + 1
print("**********************")
print("Your current score is " + str(score) + " out of 8")
print("**********************")
#Question4
print("""Who was the first Indian player to score a triple century?
1. Sachin Tendulkar
2. Virender Sehwag
3. Mahendra Singh Dhoni
4. Kapil Dev""")
answer4 = "2"
response4 = input("Enter your answer as 1, 2, 3 or 4:")
if (response4 != answer4):
print("Sorry, that is incorrect!")
else:
print("Well done! " + response4 + " is correct!")
score = score + 1
print("**********************")
print("Your current score is " + str(score) + " out of 8")
print("**********************")
#Question5
print("""The ICC Cricket World Cup reduced the number of matches from 60 to 50 in which year?
1. 1983
2. 1979
3. 1992
4. 1987""")
answer5 = "4"
response5 = input("Enter your answer as 1, 2, 3 or 4:")
if (response5 != answer5):
print("Sorry, that is incorrect!")
else:
print("Well done! " + response5 + " is correct!")
score = score + 1
print("**********************")
print("Your current score is " + str(score) + " out of 8")
print("**********************")
#Question6
print("""In 2007 ICC Cricket World Cup, India scored the highest world cup runs ever against which team?
1. Bermuda
2. Zimbabwe
3. Sri Lanka
4. England""")
answer6 = "1"
response6 = input("Enter your answer as 1, 2, 3 or 4:")
if (response6 != answer6):
print("Sorry, that is incorrect!")
else:
print("Well done! " + response6 + " is correct!")
score = score + 1
print("**********************")
print("Your current score is " + str(score) + " out of 8")
print("**********************")
#Question7
print("""Harold Bird is best known in his cricket career as...?
1. An empire
2. A batsman
3. A bowler
4. A wicketkeeper""")
answer7 = "1"
response7 = input("Enter your answer as 1, 2, 3 or 4:")
print("**********************")
print("Your current score is " + str(score) + " out of 8")
print("**********************")
if (response7 != answer7):
print("Sorry, that is incorrect!")
else:
print("Well done! " + response7 + " is correct!")
score = score + 1
#Question8
print("""Who is the only British Prime Minister to have played first-class cricket?
1. John Major
2. Winston Churchill
3. Henry John Temple
4. Alec Douglas-Home""")
answer8 = "4"
response8 = input("Enter your answer as 1, 2, 3 or 4:")
if (response8 != answer8):
print("Sorry, that is incorrect!")
else:
print("Well done! " + response8 + " is correct!")
score = score + 1
print("**********************")
print("Your current score is " + str(score) + " out of 8")
print("**********************")
print("Your total score is " + str(score) + " out of 8")
print("Thank you for playing {}, goodbye!".format(name))