Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Exponentiation | Python Basics
Introduction to Python | Mobile-Friendly
course content

Kursusindhold

Introduction to Python | Mobile-Friendly

Introduction to Python | Mobile-Friendly

1. Python Basics
2. Variables
3. Strings

book
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.

question mark

What will the following code return?

Select the correct answer

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 5

Spørg AI

expand
ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

course content

Kursusindhold

Introduction to Python | Mobile-Friendly

Introduction to Python | Mobile-Friendly

1. Python Basics
2. Variables
3. Strings

book
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.

question mark

What will the following code return?

Select the correct answer

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 5
Vi beklager, at noget gik galt. Hvad skete der?
some-alt