3 ms·
You're correct. That was my mistake. Here's the updated version: for x in range(1,101):print"Fizz"[x%34:]+"Buzz"[x%54:]or x I basically just removed the extra
by mburst 14y ago
You're correct. That was my mistake. Here's the updated version:
for x in range(1,101):print"Fizz"[x%34:]+"Buzz"[x%54:]or x
I basically just removed the extra colons and added 1, to the range so that it starts at 1. lifeisstillgood was spot on with the reasoning that this works.