Question
CREATE CODE IN PYTHON Create the following array: Arr= [55,23, -12,96,14,74,48,20,36,96, - 50, 102,150,66,15,19,30] 1- Create an array to store all even numbers from the
CREATE CODE IN PYTHON
Create the following array: Arr= [55,23, -12,96,14,74,48,20,36,96, - 50, 102,150,66,15,19,30] 1- Create an array to store all even numbers from the given array arr into an array called arr_evn. 2- Create an array to store all odd numbers from the given array arr into an array called arr_odd. 3- Remove any negative numbers and display the array arr. 4- Sort the array arr ascending and store it in another array called arr_asc. 5- Sort the array arr descending and store it in another array called arr_des. 6- Add the following elements to the given array arr: [67,20, -9, 33] 7- Print the array arr
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started