My name is Saharsh Novli, I study in NMS in Bahrain, grade 8. Leaning coding in GiveMeFive has been very fun and the learning process has been different from other places. I like to code, coding has become easier for me after joining GiveMeFive, and created a small project called : "THE GRANDE TENNIS QUIZZZ"
Saharsh's project details:
Quiz name : Can you Guess The Country ?
It consists of general knowledge questions about our planet. It gives you knowledge about various monuments and other special features of the country. I used almost all of the coding skills that givemefive had taught me.
score = 0
#my source for most of my questions : https://thefactfile.org/tennis-facts/2/
# : https://www.itftennis.com/en/rankings/mens-world-tennis-tour-rankings/
# : https://www.tennis.com/players-rankings/
#and importantly : https://www.youtube.com/watch?v=dQw4w9WgXcQ
print("\|/ This is the grande Tennis Q.U.I.Z \|/")
print("hope you are ready")
#starts here
print("""________
|CORRECT ANSWER = 100|
|WRONG ANSWER =-25 |
|_______|""")
print("your score : " , score)
print("pls do not use caps while doing the quiz")
print("________________________")
print("")
print("Q1")
print("""How many tennis sets are there in the Grand Slams(Australian Open, French Open, Wimbledon, and US Open) in a single match?""")
q1 = input("""
a) 4
b) 3
c) 5
d) pi²
CHOOSE ONE : """)
print("")
if q1 == "a" or q1 == "b" or q1 == "d" :
print("your answer is wrong")
print("there goes you 25 points")
score1 = score - 25
print("your score : " , score1)
if q1 == "c" :
print("you got it right \|/")
print("yeeeeeeeee ")
score1 = score + 100
print("your score : " , score1 )
if q1 != "a" and q1 != "b" and q1 != "c" and q1 != "d" :
print("""I dont know what your ans is but wow.. you got it wrong or didin't write it right``""")
score1 = score - 25
print("your score : " , score1)
print("")
print("________________________")
print("""FUN FACT : The longest tennis match took 11 hours and 5 minutes to complete. It was played between \nJohn Isner and Nicolas Mahut. Ultimately, John Isner triumphed and won the match.""")
print("________________________")
print("")
print("Q2")
print("Which is the first grand slam tournament")
q2 = input("""
a) Wimbledon
b) us open
c) super bowl
d) french open
CHOOSE ONE : """)
print("")
if q2 == "b" or q2 == "c" or q2 == "d" :
print("your answer is wrong")
print("- 25 points")
score2 = score1 - 25
print("your score : " , score2)
if q2 == "a" :
print("yessss you got it right")
score2 = score1 + 100
print("your score : " , score2)
if q2 != "a" and q2 != "b" and q2 != "c" and q2 != "d" :
print("i still have no clue what you wrote")
score2 = score1 - 25
print("your score : " , score2)
print("")
print("________________________")
print("""FUN FACT : The French Open is the only major tournament to not use a tiebreak in the final set for singles.""")
print("________________________")
print("")
print("Q3")
print("who is at the top of the singles leaderboard NOW")
q3 = input("""
a) kakashi
b) Rafael nadal
c) Roger federer
d) Novak djokovic
CHOOSE ONE :""")
if q3 == "b" or q3 == "c" :
print("you got it wrong.... sad")
print("-25... great-_-")
score3 = score2 - 25
print("YOUR SCORE : " , score3)
if q3 == "a" :
print("why would you do that?\:")
score3 = score2 - 25
print("your score : " , score3)
if q3 == "d" :
print("yes you got this one rightttt!!")
score3 = score2 + 100
print("your score : " , score3)
if q3 != "a" and q3 != "b" and q3 != "c" and q3 != "d" :
print("no clue")
score3 = score2 - 25
print("your score : " , score3)
print("")
print("_________________________")
print("""FUN FACT : The fastest serve in men’s tennis came from the racket of Australian Sam Groth at 263.44 km/h. faster than the max speed many cars!!!!""")
print("_________________________")
print("")
print("Q4")
print("who is the person most amount of grand slams")
q4 = input("""
a) Oana Georgeta Simion
b) margaret court
c) Anna Turati
d) logan paul
CHOOSE ONE : """)
if q4 == "a" or q4 == "c" or q4 == "d" :
print("oooh you got this wrong")
print("-25 it is")
score4 = score3 -25
print("your score : " , score4)
if q4 == "b" :
print("yessssssssss this one is rightttt")
score4 = score3 +100
print("your score : " , score4)
if q4 != "a" and q4 != "b" and q4 != "c" and q4 != "d" :
print("mind blown........wow ")
score4 = score3 - 25
print("your score : " , score4)
print("")
print("_________________________")
print("""The loudest grunt, which reached 105 decibels, came from Maria Sharapova in 2009 during Wimbledon.""")
print("_________________________")
print("")
print("Q5")
print("who looks after the rules of the game?")
q5 = input("""
a) Fédération Internationale de l'Automobile.
b) akatsuki
c) international tennis federation
d) Fédération Internationale de Football Association
choose one : """)
if q5 == "a" or q5 == "d" :
print("you got the last question wrong")
score5 = score4 - 25
print("your score :" , score5 )
if q5 == "b" :
print('do you not understand....they are bad people(well except itachi=°=)')
score5 = score4 -25
print("your score : " , score5)
if q5 == "c" :
print("niceeeeee you got the last question correct!!!")
score5 = score4 + 100
print("your score : " , score5)
if q5 != "a" and q5 != "b" and q5 != "c" and q5 != "d" :
print("wow")
score5 = score4 - 25
print("your score : " , score5)
#end here
print("\n")
print("do you want your award")
scoree = input("yes or no : ")
if scoree == "no" or scoree == "yes":
print("ye i will anyway give it")
if score5 == 500 :
print("\|/ you actually got all correct \|/")
print("you got (a genie who can dance and has) 3 wishes (for you)")
if score5 == 375 :
print("you got 4 correct \|/")
print("you got a planet ")
if score5 == 250 :
print("you got 3 correct \|/")
print("you got 60 million dollar beverly hill mansion")
if score5 == 125 :
print("you got 2 correct \|/")
print("you got a lamborghini SVJ roadster ")
if score5 == 0 :
print("you got 1 correct \|/")
print("you got a every lego")
if score5 == -125 :
print("you actually got all of them wrong")
print("grate")
print("you got a apple (an????)")
print("\n")
print("thank you for doing in my quiz")
how = input("did you like it?(yes or no)")
print("\|/ well it doesn't matter cause i know you loved it \|/")
print("byeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee")
print("byeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee")
print("byeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee")
print("byeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee")
print("just try to get exactly 185 lines of code for fun..... yeeeeeeeeeeeeeeeeeeee.. and oh ye.. byeeee")