Question: Code in Python Programming Language Finish the program below by adding code to do the following: 1. Show each element (number) in the list 'wz'

Code in Python Programming Language

Code in Python Programming Language Finish the program below by adding code

Finish the program below by adding code to do the following: 1. Show each element (number) in the list 'wz' on a separate line (one value 2. Show as output each element (number) in the list 'wz' that has a value 3. Show a sentence identifying the average of all the numbers in the list wz' per line). greater than or equal to 12. that are less than 40. Do not include the larger numbers in the average. (Example: If the list contained [56, 6, 74, 2] -Part 1 would write all 4 numbers with each number on a separate line. Part 2 would write 54, 74; and Part 3 would write a sentence showing 'average - 4'. The program must work with any number the user enters) WZ- num - int(input('Enter a number (0 to finish): )) while num! 0: wz.append(num) num - int(input(Enter another number(0 to finish):')) print0 # ADD your code here

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!