Question: I cant get this to work. Please help, thanks Please be aware of the new code style requirement. See lab 2 for a description of
Please be aware of the new code style requirement. See lab 2 for a description of PEP 8 Also, we now require your programs to have the boilerplate code as shown in Section 4.4 on page 10. Exercise 7.1 (fizzbuzz.py) Have the user enter a positive integer number. Then, print the numbers from 1 to that number each on a line. When the printed number is divisible by 3, print "Fizz", and when the number is divisible by 5, print "Buzz", and when it is divisible by both, print "FizzBuzz" You must use .format () and a while loop Should look like this when run: 1Enter a number 1 a Not a positive number! Enter a number: 16 43 Fizz 5 Buzz 6 Fizz 10 9 Fiz2 II 10 Buzz 12 11 13 12 Fizz 14 13 Is 14 16 15 FizzBuzz 17 16
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
