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

GRADE 10 - Numpy Practical - Part2

Uploaded by

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

GRADE 10 - Numpy Practical - Part2

Uploaded by

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

GRADE 10

ARTIFICIAL INTELLIGENCE
LAB ASSESSMENT - DATA SCIENCE - NUMPY

1. Write a program to create an array and Slice elements from


index 1 to index 5 from an array using Numpy.

2. Write a program to create an array and Slice elements from


index 4 to the end of the array using NumPy.

3. Write a program to create an array and Slice elements from the


beginning to index 4 (not included) using NumPy.

4. Write a program to create an array and Return every other


element from index 1 to index 5. Use the step value to determine
the step of the slicing.

5. Convert the following 1-D array with 12 elements into a 2-D


array. The outermost dimension will have 4 arrays, each with 3
elements:

6. Write a program to develop a matrix of 3×2 with values from 0


to 5.

7. Using arange() function, Write a program to generate an 1D


array with evenly spaced values within a specified interval.

8. Using built-in function create an array with 3 rows 3 columns


with integer data type.

9. Convert a list element to 1D array.


10. Create a 2 dimensional array with 3 rows and 3 columns in float
values.
11. Create a two dimensional array using random function.

You might also like