NUMPY BASIC EXERCISE 1


Import Numpy in code editor and print the current numpy version

The ‘import’ function says it all means it implies that import Numpy from a source when you are working in python. Numpy must be installed on your system before you start importing it from the directly where it belongs.

Once Numpy is imported then you can know the current version of numpy as well. Let’s look at an interactive exercise to practice.

Code

import numpy as np

#Printing the Numpy Version
print(np.__version__)

Output

1.11.2

Code Editor

import numpy as np print(np.__version__)