Seksjon 1. Kapittel 3
single
Perform Simple Math in Python
Sveip for å vise menyen
Python excels at crunching numbers. It supports various mathematical operations, from basic arithmetic to complex calculations.
Use the print() function to display results. Mathematical expressions don’t require quotation marks ("..." or '...'), unlike text.
1234567891011# Addition print(1039 + 948) # Subtraction print(10484 - 9274) # Multiplication print(116 * 99) # Division print(95873 / 472)
Oppgave
Swipe to start coding
-
Compute the following and print the outcomes:
2580added to198.23times42.1512divided by27.
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