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

Contenu du cours

Python Loops

Python Loops

1. While Loops: Get Started
2. While Loops: Essentials
3. For Loops
4. Nested Loops

book
Challenge 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.
Tâche

Swipe to start coding

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

python

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 2
toggle bottom row

book
Challenge 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.
Tâche

Swipe to start coding

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

python

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 2
Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Nous sommes désolés de vous informer que quelque chose s'est mal passé. Qu'est-il arrivé ?
some-alt