Please correct my code

The 1st test case is not getting passed.

hi @kodivine0
you have to put line 15-19 in else part
see the modified code
Modified Code

i hope this help

if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course