Multiplication and power
Multiplication is similar (use * to multiply numbers or variables).
To raise number or variable into a power use ** operator (see examples below):
12345# Example of multiplication print(2*21) #Example of power print(2**21)
Tehtävä
Swipe to start coding
If you invested $1 in stock market and it returns 15% a year, how much you will have after 10 years?
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 2
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Awesome!
Completion rate improved to 2.33
Multiplication and power
Pyyhkäise näyttääksesi valikon
Multiplication is similar (use * to multiply numbers or variables).
To raise number or variable into a power use ** operator (see examples below):
12345# Example of multiplication print(2*21) #Example of power print(2**21)
Tehtävä
Swipe to start coding
If you invested $1 in stock market and it returns 15% a year, how much you will have after 10 years?
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Awesome!
Completion rate improved to 2.33Osio 2. Luku 2
single