Question: Analytical Programming Questions Please write on the paper and jovian step by step thank you a. Following is the provided numPy array. Write the code

a. Following is the provided numPy array. Write the code to return array of items by taking the third column from all rows sampleArray = numpy.array ([[11,22,33],[44,55,66],[77,88,99]]) Expected Output: Printing Input Array - [[1]1 22 33] - [445566] 2 [77 88 99]] Printing array of items in the third column from all rows [336699] (10 marks) b. Write a program to display only those numbers from a list that satisfy the following conditions - The number must be divisible by five - If the number is greater than 150 , then skip it and move to the next number - If the number is greater than 500 , then stop the loop. Given: numbers=[12,75,150,180,145,525,50] Expected output: 75 150 145 (10 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
