Problème de boucle infinie dans mon code Python | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Problème de boucle infinie dans mon code Python

for i in range(10): print(i) if i == 5: break

1st May 2024, 10:15 AM
Assuidic Mohamed moussa
Assuidic Mohamed moussa - avatar
1 ответ
+ 7
Assuidic Mohamed moussa Que veux-tu savoir réellement ? votre code semble utiliser une boucle for qui itère de 1 à 10 mais aussi si je valorise 5, il s'arrête là-bas Il n'y a pas de boucle infinie What do you actually want to know? your code seems using a for loop that iterates from 1 to 10 but also if I values 5 it stops over there There is no infinite loop
1st May 2024, 12:10 PM
Suparna Das
Suparna Das - avatar