What is this error? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is this error?

https://www.sololearn.com/coach/42?ref=app I tried to do the challenge with this code but it results in error saying that i can't convert int to bool when i've never declared a bool, why do this happen? https://code.sololearn.com/c772rhIun4LI/?ref=app

29th Jan 2020, 4:01 AM
HadexGM
2 Answers
+ 4
Shouldn't that be '==' inside else if instead of '=' ?
29th Jan 2020, 4:13 AM
Avinesh
Avinesh - avatar
0
Ohh you're right i forgot about that
29th Jan 2020, 4:19 AM
HadexGM