fizzbuzz.py

1
# I just felt like implementing fizzbuzz, even though it's so below my
2
# capabilities. :)
3
4
print("Welcome to FizzBuzz! Tell me how far you want me to count: ")
5
n = int(input())
6
for i in range (0, n+1):
7
    output = ""
8
    if i % 3 == 0:
9
        output += "Fizz"
10
    if i % 5 == 0:
11
        output += "Buzz"
12
    if output == "":
13
        output = str(i)
14
    print(output + ", ", end="")
15