Skip to content

Instantly share code, notes, and snippets.

@PushkraJ99
Last active June 5, 2022 15:36
Show Gist options
  • Save PushkraJ99/72e739ffe8a6d27b9cfa9c056ddb8609 to your computer and use it in GitHub Desktop.
Save PushkraJ99/72e739ffe8a6d27b9cfa9c056ddb8609 to your computer and use it in GitHub Desktop.
1D Array using Python
#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