What is mean ( while 1==1) in on pthon | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

What is mean ( while 1==1) in on pthon

19th Jan 2018, 3:19 PM
Mahmoud Essam
Mahmoud Essam - avatar
4 Réponses
+ 3
you can use both but do not forget the break statement and be sure that it is reachable
19th Jan 2018, 3:48 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 2
I'm pretty sure it results into an infinite loop.
19th Jan 2018, 3:20 PM
Jonas Schröter
Jonas Schröter - avatar
+ 1
I would not recommend to use such loops anyway.
19th Jan 2018, 3:25 PM
Jonas Schröter
Jonas Schröter - avatar
0
can i say instead of it (while true)
19th Jan 2018, 3:23 PM
Mahmoud Essam
Mahmoud Essam - avatar