Question: 9 . 1 2 NumPy: Slicing arrays Write a program to prompt the user to enter integers and then adds them to a list (
NumPy: Slicing arrays
Write a program to prompt the user to enter integers and then adds them to a list hint: use a loop here Then convert the list to a NumPy array. Then find and print a subset of the array that contains the given indexes.
For example:
the printed list would be:
and the printed ndarray array would be:
NOTE: The list contains strings and the array contains int's. You will need to declare a type when converting a list to an ndarray.
Finally, output the substring of the array for the given indexes
For example:
Enter the starting index:
Enter the ending index:
the printed subset would be: cdots
LAB
: NumPy: Slicing arrays
ACTIVITYWhen done developing your program, press the Submit for grading button below. This will submit your program for autograding.
Coding trail of your work What is this?
min:
Latest submission : PM EDT on
Total score:
:Compare output
Output differs. See highlights below. Special character legend
Expected output
Compare output
Output differs. See highlights below. Special character legend
Input
tableExpected output
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
