Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
def fizzbuzz(n):
    if n == 0:
        return
    fizzbuzz(n - 1)
    if n % 3 == 0:
        print('Fizz', end='')
    if n % 5 == 0:
        print('Buzz', end='')
    if n % 3 and n % 5:
        print(n, end='')
    print('')
    
fizzbuzz(101)