Last active
June 5, 2022 15:36
-
-
Save PushkraJ99/72e739ffe8a6d27b9cfa9c056ddb8609 to your computer and use it in GitHub Desktop.
1D Array using Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#1D Array using Python (Github:-PushkraJ99) | |
import numpy | |
n= int(input("Enter Size :")) | |
arr = numpy.ndarray(shape=(n)) | |
print("Enter %d Elements :" %n) | |
for i in range (n): | |
arr[i] = int(input()) | |
print("Array Elements : ",arr) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment