• Runs fine in text+cmd,but doesn't work for checkio

Question related to mission Fizz Buzz


Attached a screenshot of my code, and I think it satisfies the assignment. Seems to work fine in cmd, but when copy and pasted to Checkio, I get the error message in the 2nd screenshot below. I double checked for spaces/tabs but I dont know what bad syntax could be on the line checkio is indicating.