code issue

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Apr 21 17:58:41 EDT 2022


On 22/04/22 5:09 am, Chris Angelico wrote:
> This can't be your complete code, because it won't run like this.

Also, the output you showed contains blank lines and lines
with hyphens, and there is nothing in the code you posted
which does that.

If I had to guess, I'd say you have a loop which is supposed
to repeatedly read a value for n and then compute fizzbuzz,
and you have the input statement in the wrong place.

-- 
Greg


More information about the Python-list mailing list