Exponentiation
Another basic operation is exponentiation. This operation is equivalent to multiplication by itself a multiple number of times. For example, 5 raised to the third power is 125, since 5 * 5 * 5 = 125.
To perform exponentiation in Python, use the **
operator. The base is on the left, and the exponent is on the right of the **
operator.
Takk for tilbakemeldingene dine!
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
Still meg spørsmål om dette emnet
Oppsummer dette kapittelet
Vis eksempler fra virkeligheten
Awesome!
Completion rate improved to 4
Exponentiation
Sveip for å vise menyen
Another basic operation is exponentiation. This operation is equivalent to multiplication by itself a multiple number of times. For example, 5 raised to the third power is 125, since 5 * 5 * 5 = 125.
To perform exponentiation in Python, use the **
operator. The base is on the left, and the exponent is on the right of the **
operator.
Takk for tilbakemeldingene dine!