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
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
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.
Tâche

Swipe to start coding

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

4
16
36
64
100

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 2
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

Suggested prompts:

Résumer ce chapitre

Expliquer le code dans file

Expliquer pourquoi file ne résout pas la tâche

close

bookChallenge 1

Glissez pour afficher le menu

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:

4
16
36
64
100

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
single

single

some-alt