Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASE PROVIDE ANSWERS BASED ON PYTHON CODE, USE NUMPY LIBRARY Answer all the following questions. Mark question numbers as comments in code cells. ( 1
PLEASE PROVIDE ANSWERS BASED ON PYTHON CODE, USE NUMPY LIBRARY
Answer all the following questions. Mark question numbers as comments in code cells.
points In five cells create five lists respectively, each satisfying one of the
following requirements. Each list should be assigned to a parameter and its value
should be displayed under the cell:
a points Create a list of integers of your choice, with some repeated
elements; the list object is denoted by list a Output list a
b points Create a list of float numbers of your choice, with some
repeated elements; the list object is denoted by list Output list
c points Use list a and list to create a list denoted by list that includes
all elements of both list a and list Output list
d points Use list a and list to create a list denoted by list that includes
unique elements of both list a and list Output list
e points First create a string of a complete sentence with punctuations
Then create a list of words comprising the sentence from the string. Remove
any punctuation. Denote the list by list e and output it
points In five cells create five arrays respectively, each satisfying one of the
following requirements. Each array should be assigned to a parameter and its value
should be displayed under the cell:
a points Create a dimensional array of zeros with the array length equal
to your height in cm Denote the array by array a and output it
b points Set all elements in array a to and denote the new array by
array b Output array b
c points Make a by identity matrix as an array. Denote the array by
array and output it
d points First make two arrays: a by matrix of positive float numbers
denoted by and a by matrix of float numbers denoted by
Generate a new array denoted by array d ie Output array
e points First generate a matrix Then generate a matrix
with each of its element being the square root of the element of matrix in
the same position. Output array e
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