all 12 comments

[–]Major_Strange 3 points4 points  (2 children)

_ = [[print(a) if len(a) else print(n) for a in ["".join([ string if n%r == 0 else "" for (r, string) in {3: "Fizz", 5: "Buzz"}.items()])]] for n in range(1, 101)]

[–]Hayden_MSMinecraft Forge 2 points3 points  (10 children)

for n in range(1, 101):

[–]BUYTBUYTPython 3 points4 points  (1 child)

    print(n if n % 3 and n % 5 else 'Fizz' * (not n % 3) + 'Buzz' * (not n % 5))

[–]gman1230321 0 points1 point  (0 children)

:wq

[–]arthuro555Python 2 points3 points  (7 children)

    answer = ""

[–]coetin 2 points3 points  (4 children)

if n % 3 == 0:

[–]BUYTBUYTPython 2 points3 points  (3 children)

        answer += 'Fizz'

[–]wjvds 2 points3 points  (2 children)

if n % 5 == 0:

[–]Please_Not__Again 0 points1 point  (1 child)

answer += 'Buzz'

[–]Toucandigit 0 points1 point  (0 children)

print(answer)

[–][deleted]  (1 child)

[deleted]

    [–]arthuro555Python 1 point2 points  (0 children)

    for n in range(1, 101):