Question: Create a program that Lab 2 _ 1 . py that will con nuously five numbers to a list . A er that, please print
Create a program that Labpy that will con nuously five numbers to a list A er that, please print the
list that you have created.
HINTS:
To declare an empty list, use numbers
You should be using a while loop to check if the list count is less than
To get input from the command line, use x inputPlease enter a number:
When you enter input through keyboard, even if you enter a number, it will store that in string
datatype format.
Find the syntax in google to convert the input from string to integer datatype.
To add numbers to a list ls use numbers.appendx
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
