Question: Python Program 3. Write a program that initializes a list of integers called modList. This program will print ine number of zeroes in the original

 Python Program 3. Write a program that initializes a list of

Python Program

3. Write a program that initializes a list of integers called modList. This program will print ine number of zeroes in the original list and modify the list to replace all negative numbers with zeros. The final list should be printed. For example, if the list of integers was initialized as follows: modList =[0,4,2,2,8,0,5,19,200,3] Sample run: There were 2 zeroes in the original list The new list is [0,4,2,0,0,0,5,19,200,0]

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!