Simple Math: Add & Subtract
Python makes math operations simple and powerful. Use the following basic arithmetic operators:
- Addition (
+
) - Subtraction (
-
) - Multiplication (
*
) - Division (
/
)
Oppgave
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
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 3
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Suggested prompts:
Oppsummer dette kapittelet
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 2.17
Simple Math: Add & Subtract
Sveip for å vise menyen
Python makes math operations simple and powerful. Use the following basic arithmetic operators:
- Addition (
+
) - Subtraction (
-
) - Multiplication (
*
) - Division (
/
)
Oppgave
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
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Awesome!
Completion rate improved to 2.17Seksjon 1. Kapittel 3
single