Question: Question 1 . Write a Python program that iterates from 1 to 1 0 . For multiples of 2 , print Fizz instead of the

Question 1. Write a Python program that iterates from 1 to 10. For multiples of 2, print Fizz
instead of the number, and for multiples of 5, print Buzz. For numbers that are multiples of
both 2 and 5, print FizzBuzz.
Sample input: numbers from 1 to 10
Sample output: 1 Fizz 3 Fizz Buzz Fizz 7 Fizz 9 FizzBuzz
Question 2. Given a range of the first 10 numbers, write a Python program to iterate from
the start number to the end number and print the sum of the current number and the previous
number.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!