Question: This is the Unit 3 . 8 lab assignment for the zyBooks materials. Code hints: while user _ input > 0 : #This is the

This is the Unit 3.8 lab assignment for the zyBooks materials.
Code hints: while user_input >0: #This is the number that is greater than 0 from the list that is entered.
print(user_numbers) #Prints out the numbers greater than zero that are inputted at the top part from zyBooks.
Write a program that reads a list of integers into a list as long as the integers are greater than zero, then outputs the values of the list.
Ex: If the input is:
10
5
3
21
2
-6
the output is:
[10,5,3,21,2]
You can assume that the list of integers will have at least 2 values.This is the Unit 3.8 lab assignment for the zyBooks materials.
Code hints: while user_input >0: #This is the number that is greater than 0 from the list that is entered.
print(user_numbers) #Prints out the numbers greater than zero that are inputted at the top part from zyBooks.
Write a program that reads a list of integers into a list as long as the integers are greater than zero, then outputs the values of the list.
Ex: If the input is:
10
5
3
21
2
-6
the output is:
[10,5,3,21,2]
You can assume that the list of integers will have at least 2 values.

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 Programming Questions!