I wrote this and it gives me this error. What am I doing wrong? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

4th Feb 2020, 11:46 AM
Gonzalo Rodríguez Hermida
Gonzalo Rodríguez Hermida - avatar
1 Answer
+ 4
<= not =<
4th Feb 2020, 11:48 AM
Oma Falk
Oma Falk - avatar