Showing the Answer
Print the result.
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)All lessons in this course
- Getting Two Numbers
- Doing the Math
- Choosing an Operation
- Showing the Answer