Answers for "What is the output of the following code? np.arange(0,22,6)"

7

np.arange in python

>>> np.arange(3)
array([0, 1, 2])
>>> np.arange(3.0)
array([ 0.,  1.,  2.])
>>> np.arange(3,7)
array([3, 4, 5, 6])
>>> np.arange(3,7,2)
array([3, 5])
Posted by: Guest on July-09-2020
0

What is the output of the following code? np.arange(0,22,6)

vec=np.arange(10,20,3)
print(vec)
Posted by: Guest on August-14-2021

Code answers related to "What is the output of the following code? np.arange(0,22,6)"

Python Answers by Framework

Browse Popular Code Answers by Language