App 1: Your First App, a Quiz Game / Build the quiz
Lesson 10 of 10
Finish and share it
Add a final message based on the score, tidy your code, and share it. Congratulations, you built a complete app! Put it on GitHub so others can try it.
Key points
- Percent = score / total * 100
- Different messages for different scores
- Share your code on GitHub
percent = score / len(questions) * 100
if percent == 100:
print("Perfect score! 🏆")
elif percent >= 60:
print("Nice work!")
else:
print("Keep practising, you'll get there.")Your turn
Add the result messages, then show your finished quiz to a friend or family member.
Quiz · +10 XP
If score is 3 out of 4 questions, what is percent?
Log in to save progress and earn XP.