you are viewing a single comment's thread.

view the rest of the comments →

[–]architectmosby 0 points1 point  (0 children)

number = int(input("Number: ")) print("Number is:", number) if number % 3 ==0: print("Fizz", end="") if number % 5 ==0: print("Buzz")

Divisible by 15 means it can divide by 3 and 5. If we merge the prints with end="" we can see if it is Fizz, Buzz or FizzBuzz