Sobes.tech
Intern — Senior

Print numbers from 1 to 100 with FizzBuzz rules in Python

livecode

Task condition

It is required to implement a function that outputs a sequence from 1 to 100. Each number divisible by 3 should be replaced with the word "Fizz", each divisible by 5 with the word "Buzz". If a number is divisible by both 3 and 5, output the string "FizzBuzz".

def fizzbuzz():
    # implementation of the function
    pass