+ 1
I wrote this and it gives me this error. What am I doing wrong?
i = 10 while i >= 0: print("hello") i = i-1 if i =< 5: print("skipping") break File "./Playground/file0.py", line 5 if i =< 5: ^ SyntaxError: invalid syntax
1 ответ
+ 4
<= not =<
i = 10 while i >= 0: print("hello") i = i-1 if i =< 5: print("skipping") break File "./Playground/file0.py", line 5 if i =< 5: ^ SyntaxError: invalid syntax