Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele 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.
Tehtävä

Swipe to start coding

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

4
16
36
64
100

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 2
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

close

Awesome!

Completion rate improved to 6.25

bookChallenge 1

Pyyhkäise näyttääksesi valikon

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.
Tehtävä

Swipe to start coding

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

4
16
36
64
100

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

close

Awesome!

Completion rate improved to 6.25
Osio 1. Luku 2
single

single

some-alt