Showing the Final Score
Tell the player how they did.
Showing the Final Score is a free Coding for Kids lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Coding for Kids learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Show the Final Score!
Hello game maker! 🎮🎊 Today we finish our quiz by showing the player their FINAL score!
The Big Finish
Every great game has an ending. 🏁
At the end, we tell the player how well they did. So exciting!
Printing the Score
We print the score with a friendly message. 🎉
score = 2
print("Quiz over!")
print("Your score is " + str(score))A Happy Ending
The game said the quiz is over and showed the score! 🎊
Remember str(score) turns the number into text.
Out of How Many?
It is nice to show the total too, like "2 out of 3". 📊
score = 2
total = 3
print("You got " + str(score) + " out of " + str(total) + "!")Score Out of Total
Now players know how they did compared to all questions! 📊
2 out of 3, great job!
A Special Message
We can give a cheer based on the score using if! 🎉
score = 3
if score == 3:
print("Perfect! You are a genius!")
else:
print("Good try!")A Cheer for Winners!
If the score was perfect, the player got a special cheer! 🏆
if picks the right message.
Putting It All Together
A full mini quiz: ask, check, score, and show the result! 🎮
score = 0
ans = input("Cat sound? ")
if ans == "meow":
score = score + 1
print("Final score: " + str(score) + " out of 1")A Complete Game!
You built a working quiz from start to finish! 🎉
It asks, checks, scores, and shows the result. Wow! 🤩
Quiz Game Done!
You learned to show the final score with friendly messages and cheers. 🎊🏆
You made a real game!
Quick Check
Final quiz! 🎊
You Made a Game!
WOOHOO! 🎉🎮 You finished the Quiz Game project AND the whole Python for Kids journey!
You can write functions, draw, animate, and build games. You are an amazing coder! 🌟🏆
Frequently asked questions
Is the “Showing the Final Score” lesson free?
Yes — the full text of “Showing the Final Score” is free to read here on the web, and the Coding for Kids course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Coding for Kids course, upgrade to CoddyKit PRO.
What will I learn in “Showing the Final Score”?
Tell the player how they did. You practise Coding for Kids with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Coding for Kids?
No prior experience is required. Coding for Kids on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Showing the Final Score” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Coding for Kids lesson?
Yes. Every Coding for Kids lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Planning the Quiz
- Asking Questions
- Keeping Score
- Showing the Final Score