New course! Every coder should learn Generative AI!
Try a free lesson2 Answers
+ 1
Salim
If you write clean code then you will understand where is problem.
Return should be outside else block
There is extra closing bracket at the end of code.
https://code.sololearn.com/c1sY2OpgbBQi/?ref=app
+ 1
Thanks