Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions