You are viewing a single comment's thread. Return to all comments →
Nice! You can save a few more in the comparisons:
for i in range(1,101):print("Fizz"*(i%3<1)+(i%5<1)*"Buzz"or i)
Seems like cookies are disabled on this browser, please enable them to open this website
FizzBuzz
You are viewing a single comment's thread. Return to all comments →
Nice! You can save a few more in the comparisons: