TypeError when run [closed]

At the bottom of your loop, you strangely convert number to a string. You can’t compare that to an integer. Just remove that comparison and conversion from the bottom of your code.

Leave a Comment