What's the error in line 17 & 18? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
6th Sep 2020, 6:01 PM
AKASH YADAV
5 Answers
+ 1
There is no closing except statement
6th Sep 2020, 6:12 PM
Abhay
Abhay - avatar
+ 1
As all of them said there is no closing except statement. However, your trying to create multiples. No need of error handling. You can code with only a loop
7th Sep 2020, 12:52 AM
Jenson Y
+ 1
except in line 18 is not intended correctly
7th Sep 2020, 5:45 PM
Terminal_Phantom
Terminal_Phantom - avatar
0
I don't know what you are trying to acheive, i didn't looked the logic, just the case. you have a Try block at line 2, and it needs a except or finally block which you haven't provided
6th Sep 2020, 6:14 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
First 'try' doesn't have corresponding 'except' or 'finally' clause.
6th Sep 2020, 6:17 PM
gambler