0
Can anyone explain y i can't execute this code
python , while loops https://code.sololearn.com/cb6BjQ38Eyo6/?ref=app
5 Answers
+ 6
The loop condition is False, so the loop doesn't even start. Look carefully why it's like that -- the variable s is definitely not "larger or equal to" 40 at program start... ;)
+ 3
because s=2
and youre saying::
if s>=40 which never evaluates to true
+ 2
While Kuba and Brains are correct about the conditional, you also must remember that indentation is used to show the start and the end of a code block.
Referring to the last print statement
+ 1
thank you đ Charles Comer
0
thank youđđ Brains and Kuba SiekierzyĆski