0% found this document useful (0 votes)
35 views1 page

Numpy Practise Questions

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views1 page

Numpy Practise Questions

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

NUMPY PRACTISE QUESTIONS

 Write a NumPy program to create a 3x3 matrix with values ranging from
2 to 10
 Write a NumPy program to get the unique elements of an array
 Write a NumPy program to find the union of two arrays. Union will
return the unique, sorted array of values that are in either of the two
input arrays.
 Write a NumPy program to create a 2-dimensional array of size 2 x 3
(composed of 4-byte integer elements), also print the shape, type and
data type of the array.
 Write a NumPy program to create a 2D array whose diagonal equals [4,
5, 6,8] and 0's elsewhere.
 Write a NumPy program to create a null vector of size 6 (1D) and update
sixth value to 9
 Write a NumPy program to create a array with values ranging from 12 to
39
 Write a NumPy program to reverse a 1D array (first element becomes
last).

You might also like