Showing the Answer
Print the result.
Showing the Answer 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 Answer! 📢
Hi presenter! 🎤 A calculator isn't finished until it SHOWS the answer in a friendly way! 📢
Today we make our results look clear, fun, and easy to read!
answer = 42
print('The answer is', answer)Save the Answer First 📦
It's neat to save the result in a box called answer first, then print it. 📦 This keeps our code tidy!
a = 7
b = 3
answer = a + b
print('Result:', answer)Words and Numbers Together 🔗
We can mix words and numbers in one print using commas! 🔗 Python adds a space between them automatically.
a = 5
b = 2
print(a, 'plus', b, 'is', a + b)A Full Sentence 📝
Let's make the answer a whole friendly sentence! It feels like the computer is talking to you. 📝
a = 8
b = 4
print('Hey! ' + str(a) + ' times ' + str(b) + ' equals ' + str(a * b))str() Glues Text 🧴
To glue numbers into a sentence with +, we change them to text with str()! 🧴
Or just use commas — both work great!
score = 100
print('Your score is ' + str(score) + '! 🎉')Add Some Emojis! 🎉
Emojis make answers fun and exciting! Add a 🎉 or ✅ to celebrate the result!
a = 6
b = 6
print('✅ The answer is', a + b, '🎉')The Full Calculator! 🧮
Let's put EVERYTHING together: get numbers, pick an operation, do the math, and SHOW the answer! 🧮
a = 10
b = 5
op = '+'
if op == '+':
answer = a + b
elif op == '-':
answer = a - b
print('🧮 Answer:', answer)Show the Whole Problem 🔢
It's nice to show the WHOLE problem, not just the answer! Like '3 + 4 = 7'. 🔢
a = 3
b = 4
print(a, '+', b, '=', a + b)Real Calculator With Input 🗣️
Now the full thing with real input! Type numbers and an operation, and watch your calculator answer! 🗣️
a = int(input('First number: '))
b = int(input('Second number: '))
op = input('Operation + - * /: ')
if op == '+':
answer = a + b
elif op == '-':
answer = a - b
elif op == '*':
answer = a * b
elif op == '/':
answer = a / b
print('🧮', a, op, b, '=', answer)Make It Pretty ✨
Add lines and stars to make the answer stand out! A pretty box around your answer looks professional. ✨
answer = 25
print('*' * 20)
print(' ANSWER:', answer)
print('*' * 20)You Built a Calculator! 🏆
WOW! 🏆 You made a complete calculator that gets numbers, chooses an operation, does math, and shows the answer beautifully! Change the values and play! 🎮
a = 9
b = 3
print('🎉 Final answer:', a * b, '🎉')Quick Check! 🧠
Test your answer-showing skills! 📢
Calculator Champion! 🎉
Incredible! 🎉 You finished your calculator!
- Save results in a variable 📦
- Mix words and numbers with commas 🔗
str()turns numbers into text 🧴- Emojis and lines make it pretty ✨
You completed Build a Calculator! Super proud of you! 🏆
a = 7
b = 8
print('🧮 Final:', a, '+', b, '=', a + b, '🎉')Frequently asked questions
Is the “Showing the Answer” lesson free?
Yes — the full text of “Showing the Answer” 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 Answer”?
Print the result. 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 Answer” 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
- Getting Two Numbers
- Doing the Math
- Choosing an Operation
- Showing the Answer