0% found this document useful (0 votes)
12 views

Practical No 11-1

Computer software

Uploaded by

mauligaming465
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)
12 views

Practical No 11-1

Computer software

Uploaded by

mauligaming465
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/ 2

Practical No:

Aim: Create a numpy And Array object by using array Function ().
Requirement: Notepad, python , Command Prompt.
Code:
import numpy as np
arr_1d = np.array([1, 2, 3, 4, 5])
print("1D Array:", arr_1d)

arr_2d = np.array([[1, 2, 3], [4, 5, 6]])


print("2D Array:\n", arr_2d)

arr_3d = np.array([[[1, 2], [3, 4]], [[5, 6], [7, 8]]])


print("3D Array:\n", arr_3d)

Output:

Result: Program is run Successfully.

You might also like