Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge 1 | While Loops: Get Started
Python Loops

bookChallenge 1

Summary

  • Instructions are executing until stop condition is False.
  • Counter in the stop condition is changing inside the loop. It can be decremented or incremented by some number.
Opgave

Swipe to start coding

Understanding the stop condition is important. Change the given code to get such an output:

4
16
36
64
100

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 2
single

single

Spørg AI

expand

Spørg AI

ChatGPT

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

close

Awesome!

Completion rate improved to 6.25

bookChallenge 1

Stryg for at vise menuen

Summary

  • Instructions are executing until stop condition is False.
  • Counter in the stop condition is changing inside the loop. It can be decremented or incremented by some number.
Opgave

Swipe to start coding

Understanding the stop condition is important. Change the given code to get such an output:

4
16
36
64
100

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

close

Awesome!

Completion rate improved to 6.25
Sektion 1. Kapitel 2
single

single

some-alt