Why is this returning errors | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
14th Sep 2020, 10:38 PM
Joseph Oritseweyinmi
Joseph Oritseweyinmi - avatar
2 Answers
+ 7
In line 17, you're using integers as a condition of if statement, apparently you can't to that. Either use "getproper(x)>some_value" or make the function return a boolean. In line 45 you're trying to output from a function that returns nothing. Either make the function return something, or remove WriteLine and keep the function as it is. Here is a working code, modify the condition to suit your needs. https://code.sololearn.com/cdT8iyhI4y3J/?ref=app
14th Sep 2020, 10:44 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
Thank you so much
14th Sep 2020, 10:50 PM
Joseph Oritseweyinmi
Joseph Oritseweyinmi - avatar