Question: Write a python code for the following problem. Write a Python code that will take a one-dimensional array of 5 elements as input, add the
Write a python code for the following problem.

Write a Python code that will take a one-dimensional array of 5 elements as input, add the elements of the array, check whether any element is 0 or not and replace O by 1 if found. The program will then add the elements of the modified array and print the number of zeroes in the first array.
Step by Step Solution
3.50 Rating (153 Votes )
There are 3 Steps involved in it
def replace0with5number number calculateAddedValuenumbe... View full answer
Get step-by-step solutions from verified subject matter experts
