Simple Math: Add & Subtract
Python makes math operations simple and powerful. Use the following basic arithmetic operators:
- Addition (
+
) - Subtraction (
-
) - Multiplication (
*
) - Division (
/
)
Task
Swipe to start coding
Complete and output the arithmetic operations below
- Add the price of milk (
5.42
) and the price of bread (4.39
). Use+
operator - Subtract the price of all items in the shopping cart (
12.30
) and value of gift card (5.50
). Use-
operator
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 3
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Can you give me more example problems to practice with?
Can you explain how to use these operators with variables?
What happens if I try to divide by zero in Python?
Awesome!
Completion rate improved to 11.24
Simple Math: Add & Subtract
Swipe to show menu
Python makes math operations simple and powerful. Use the following basic arithmetic operators:
- Addition (
+
) - Subtraction (
-
) - Multiplication (
*
) - Division (
/
)
Task
Swipe to start coding
Complete and output the arithmetic operations below
- Add the price of milk (
5.42
) and the price of bread (4.39
). Use+
operator - Subtract the price of all items in the shopping cart (
12.30
) and value of gift card (5.50
). Use-
operator
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 3
single