Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

create a 4x2 integer array and print its attributes

import numpy

firstArray = numpy.empty([4,2], dtype = numpy.uint16) 
print("Printing Array")
print(firstArray)

print("Printing numpy array Attributes")
print("1> Array Shape is: ", firstArray.shape)
print("2>. Array dimensions are ", firstArray.ndim)
print("3>. Length of each element of array in bytes is ", firstArray.itemsize)
Source by www.findfreeinfo.com #
 
PREVIOUS NEXT
Tagged: #create #integer #array #print #attributes
ADD COMMENT
Topic
Name
7+9 =