While loop not breaking when value set to false | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

While loop not breaking when value set to false

I am having problem while breaking the while loop in first condition the other conditons it is working fine please check my code by inputing incorrect value https://code.sololearn.com/cbxgoWt2cR6W/?ref=app

24th Nov 2020, 11:46 AM
Samip Karki
Samip Karki - avatar
5 Answers
+ 1
https://code.sololearn.com/cbxgoWt2cR6W/?ref=app
24th Nov 2020, 11:54 AM
Samip Karki
Samip Karki - avatar
+ 1
Samip Karki it will be great if you add relative programming language as a tag. In this programming language is python.
24th Nov 2020, 12:03 PM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar
+ 1
🇮🇳Vivek🇮🇳 sorry mate i think the app glitched anyway i added relevant tags
24th Nov 2020, 4:07 PM
Samip Karki
Samip Karki - avatar
+ 1
NotAPythonNinja The use of 'break' keyword is fine but my question is Why the 'game_stat = False is not' working ?? It is suppose to break the loop
24th Nov 2020, 4:14 PM
Samip Karki
Samip Karki - avatar
+ 1
NotAPythonNinja thanks mate .....!!!
25th Nov 2020, 3:23 AM
Samip Karki
Samip Karki - avatar