Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions

Question

What is Aufbau's rule explain with example?

Answered: 1 week ago