I am Juan Rabi from Enayam, Kanyakumari in Tamil Nadu, India. I am living in Al-Khor, Qatar. I am 9 right now. I study at Pearl School in Grade 6.
Juan's project details:
I've have attached my Python Program (Solar System Quiz) for my Student Portfolio below.
print ("Solar System Quiz")
print("""The rules of the quiz are:
1. Answer using the option letters
2. For every correct answer you get 10 points
3. For every incorrect answer you lose 5 points
""")
score = 0
# Question 1
print ("""Q1. Which is the smallest planet in the Solar System?
a.Mars
b.Mercury
c.Jupiter
d.Neptune""")
ans1 = input("Choose the correct option - ")
if ans1 =="b":
print("Well Done!")
score = score + 10
else:
print ("The answer is wrong. It is Mercury.")
score = score - 5
# Question 2
print ("""Q2. Which is the largest planet in the Solar System?
a.Jupiter
b.Uranus
c.Mercury
d.Mars""")
ans1 = input("Choose the correct option - ")
if ans1 =="a":
print("You'r really good at this!")
score = score + 10
else:
print ("The answer is wrong. It is Jupiter.")
score = score - 5
# Question 3
print ("""Q3. How many planets are there in the Solar System?
a.11
b.5
c.8
d.15""")
ans1 = input("Choose the correct option - ")
if ans1 =="c":
print("You'r really good at this!")
score = score + 10
else:
print ("The answer is wrong. It's 8.")
score = score - 5
# Question 4
print ("""Q3. How many major dwarf planets are there in the Solar System?
a.16
b.2
c.9
d.5""")
ans1 = input("Choose the correct option - ")
if ans1 =="d":
print("That's good")
score = score + 10
else:
print ("The answer is wrong. It's 5.")
score = score - 5
# Question 5
print ("""Q5. What is the nearest planet to the sun?
a.Mars
b.Uranus
c.Earth
d.Mercury""")
ans1 = input("Choose the correct option - ")
if ans1 =="d":
print("Wow!")
score = score + 10
else:
print ("The answer is wrong. It's Mercury.")
score = score - 5
# Question 6
print ("""Q6. Which is the farthest planet to the sun?
a.Jupiter
b.Mars
c.Saturn
d.Neptune""")
ans1 = input("Choose the correct option - ")
if ans1 =="d":
print("You are right!")
score = score + 10
else:
print ("The answer is wrong. It is Neptune.")
score = score - 5
# Question 7
print ("""Q7. What is the name of the star that is at the center of the solar Syatem?
a. Betelguse
b. UY Scuiti
c. Alpha Centauri A
d. Sun""")
ans1 = input("Choose the correct option - ")
if ans1 =="d":
print("Another right answer!")
score = score + 10
else:
print ("The answer is wrong. It is the Sun.")
score = score - 5
# Question 8
print ("""Q8. What is the least dense planet in the Solar System?
a.Mars
b.Uranus
c.Saturn
d.Earth""")
ans1 = input("Choose the correct option - ")
if ans1 =="c":
print("That's great")
score = score + 10
else:
print ("The answer is wrong. It's Saturn.")
score = score - 5
# Question 9
print ("""Q9. What is the coldest planet in the solar system?
a.Earth
b.Uranus
c.Venus
d.Neptune""")
ans1 = input("Choose the correct option - ")
if ans1 =="b":
print("That's good")
score = score + 10
else:
print ("The answer is wrong. It's Uranus.")
score = score - 5
# Question 10
print ("""Q10. What is the hottest planet in the solar system?
a.Venus
b.Uranus
c.Mars
d.Jupiter""")
ans1 = input("Choose the correct option - ")
if ans1 =="a":
print("Right Again!")
score = score + 10
else:
print ("The answer is wrong. It's Venus.")
score = score - 5
# Score
print ("Your final score is", score)
if (score) == 100 :
print("""Excellent
Keep it up 5 Stars ☆☆☆☆☆""")
exit()
elif (score) >= 80:
print("""Good
Awsome you get 4 stars ☆☆☆☆""")
exit()
elif (score) >= 60:
print("""Average
Normal you get 3 stars ☆☆☆""")
exit()
elif (score) >= 40:
print("""Low
Try Better next time you get 2 stars ☆☆""")
exit()
elif (score) >= 20:
print("""Very Low
Maybe read more you get 1 star ☆""")
exit()
elif (score) == 0:
print("""Too Low
Need to try harder you get 0 stars""")
exit()