Error in line 3. Why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
25th Mar 2020, 10:45 AM
Gaurav Chanda
Gaurav Chanda - avatar
6 Answers
+ 3
U didnt put a colon (:) at the end of the while loop line. while x <= int(y):
25th Mar 2020, 11:14 AM
maf
maf - avatar
+ 3
You haven't defined 'i' You haven't put colon after while loop's condition like while condition: Use 'x' in the last line instead of 'i'
25th Mar 2020, 10:49 AM
maf
maf - avatar
+ 2
Please tag Python, the language relevant to your question! 👍
25th Mar 2020, 10:52 AM
Ipang
+ 1
Tnx
25th Mar 2020, 11:15 AM
Gaurav Chanda
Gaurav Chanda - avatar
0
Still not working
25th Mar 2020, 11:13 AM
Gaurav Chanda
Gaurav Chanda - avatar
25th Mar 2020, 11:17 AM
maf
maf - avatar