Question: 1. Please modify the python 3 program below and show share the code. Please also show all outputs. 2. Also make the code so you
1. Please modify the python 3 program below and show share the code. Please also show all outputs.
2. Also make the code so you can imput differnt values from 1 to 150.
Clockwise! 1 2 Fizz Counterclockwise! 4 Buzz Clockwise! Fizz Counterclockwise! Woof Clockwise! 8 Fizz Counterclockwise! Buzz Clockwise! 11 Fizz Counterclockwise! 13 Woof Clockwise! Fizz Buzz 16
Code To Modify:
for i in range(1, 151): s = '' if i % 3 == 0: s += 'Fizz' if i % 5 == 0: if s != '': s += ' ' s += 'Buzz' if i % 7 == 0: if s != '': s += ' ' s += 'Woof' if s == '': print(i) else: print(s)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
