Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Instructions Perform the tasks and answer the questions using Python code ( Jupyter notebook ) . Display results when applicable. Take screenshots of your work
Instructions
Perform the tasks and answer the questions using Python code Jupyter notebook Display results when applicable. Take screenshots of your work and paste them.
To start performing each task, import the Numpy library and give it an appropriate alias name. Find the version of the Numpy package on your system.
Task A
Julie scored in Mathematics, in English, in Social Science and in Science. Meanwhile, Tina scored in Mathematics, in English, in Social Science and in Science.
i Create two arrays to reflect Julie and Tina's scores respectively.
ii Create an array which holds boolean values ie the comparison output of their scores. In how many subjects Julie scored more than Tina? Hint: Use the npargwhere function.
Task A
Create an array with the gems listed below. Make it a dimensional array.
Gems: ruby, diamond, emerald, jade, sapphire, garnet
i Print each element of the array using the nested for loop. While printing, the st letter of the gem has to be in capital letters.
ii Print each element of the array using a single for loop. While printing, the st letter of the gem has to be in capital letters.
Task A
Create a twodimensional array as
Convert it into a onedimensional array and print it
Divide the onedimensional array by and print the new array. Ensure that the datatype of the new array is int
Task A
Create an array with values and another array with
i Using the functions available in Numpy, create an array using the arrays above such that the result is:
ii Using the functions available in Numpy, create an array using the arrays above such that the result is:
Task A
Create an array of numbers from to
Slice the array to create arrays
i The st array contains numbers to
ii The nd array contains numbers from to
iii The rd array contains numbers from to
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