+ 1
Return issue
It's seems like the return couldn't used after while right? https://code.sololearn.com/cPgNZW9HxGK0/?ref=app
2 Answers
0
return should be used inside a function, but you aren't in a function. That has nothing got to do with the while loop :)
0
return only works in functions, it returns variables to your main scope