Question: IN PYTHON PLEASE Write a function fizz_buzz that loops from 0 up to a number n, printing the number or a word at each iteration.
IN PYTHON PLEASE
Write a function fizz_buzz that loops from 0 up to a number n, printing the number or a word at each iteration. If the current number is divisible by 3, print the word Fizz" If it is divisible by 5, print "Buzz" If it is divisible by 3 and 5 print "FizzBuzz" Otherwise, print the number itself. (If the number is O, also print the number itself.) The function should take one parameter n and should not return anything
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
