[Solved] Why isn’t the while-loop working in Python? [closed]

[ad_1]

i = 1
while i <= 5:
    print(i)
    i += 1

This works in PyCharm, looking at the image it seems that you wrote the if statement
and the print() on the same line. Which also gave me an error.

0

[ad_2]

solved Why isn’t the while-loop working in Python? [closed]