Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Simple Math: Add & Subtract | Getting Started
Introduction to Python (copy)
course content

Kursinnhold

Introduction to Python (copy)

Introduction to Python (copy)

1. Getting Started
2. Variables and Types
3. Conditional Statements
4. Other Data Types
5. Loops
6. Functions

book
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

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 3
toggle bottom row

book
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

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 3
Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Vi beklager at noe gikk galt. Hva skjedde?
some-alt