Question: a) Using for and if statements. Populate a list called numbers that will go from 0 up to 100 where, if the number is divisible

a) Using for and if statements. Populate a list called numbers that will go from 0 up to 100 where, if the number is divisible by 3 and 5 , you replace it by the word "FizzBuzz"; if the number is divisible by 3 , you replace it by "Fizz"; and if the number is divisible by 5 , you replace it by "Buzz". All the remaining numbers should remain as numbers. Note: You have to use for statements and if statements together. Tips: - Look into the \% operator. - To check if something is equal to 0 , remember you need to use the comparison operator. Note: After you finish, you can use the print statement to check your list. ]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
