Question: Lab 7: Use for loop Write a python program that computes sum of odd numbers in the list given below list1- [4, 3, 6, 5,

 Lab 7: Use for loop Write a python program that computes

Lab 7: Use for loop Write a python program that computes sum of odd numbers in the list given below list1- [4, 3, 6, 5, 1,99, 22, 66, 15 10 Marks RESTART: Ci/Users/sanjay/6010691/W2018sanjay/code/sun of odd number in 11st.Py 11st1_ [4, 3, 6, 5, 1, 99, 22, 66, 15 15 The final sum 1s: 123 One of the ways can be define and print listi initialize sum to O iterate over listl with for loop for items in list # check if even continue # continue to next iteration else: #c. print items not even #sum the items #d, print final sum

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!