Question: 7 . 1 4 Homework 2 , Question 1 Write a script that reads in two integers from the user, then prints all the numbers
Homework Question
Write a script that reads in two integers from the user, then prints all the numbers from to with the following exceptions: If a number is
divisible by:
the first entered integer, print "FIZZ" instead of the number.
the second entered integer, print "BUZZ" instead of the number.
both the first AND the second integers, print "FIZZBUZZ" instead of the number.
For example, if the inputs are and the output should be
FIZZ BUZZ FIZZ FIZZ BUZZ FIZZ FIZZBUZZ FIZZ BUZZ
Note that each item is separated by a single space character and that the expected output has a trailing space followed by a newline
character.
qxzqy
LAB
ACTIVITY
: Homework Question
main.py
Your code
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
