Course Content
Introduction
Python provides numerous functionalities to implement machine learning, with the help of different python libraries.
0/7
NumPy
About Lesson
a = np.array( [ 6, 12, 18, 24, 30] )  
b = np.array( [ 1, 2, 3, 4 ] )

1. The below code will return the difference between the two arrays.

z = x - y

 

2. The below code will return the arrays holding the square of each item.

y**2

 

3. The below code will return “true” at every item position which satisfies the given condition.

x<15