Question: python3. when given a number N, for each integer i in the range from 1 to N inclusive, print one value per line as follows:
python3.
when given a number N, for each integer i in the range from 1 to N inclusive, print one value per line as follows:
-if i is a multiple of both 3 and 5, print FizzBuzz
-if i is a multiple of 3 but not 5, print Fizz
-if i is a multiple of 5 but not 3, print Buzz
-if i is not a multiple of 3 or 5, print value of i.

inputNum, represents the given number. "." def funcFizzBuzz (inputNum): \#-Write your code here return def main(): \#input for inputNum inputNum = int(input()) result = funcFizzBuzz (inputNum) print(result) if ___ name__ = "__ main_": main()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
