w3resource logo
Python Exercises

Python NumPy: Print the NumPy version in your system

Python NumPy: Array Object Exercise-1 with Solution

Write a Python program to print the NumPy version in your system.

Sample Solution:-

Python Code:

import numpy as np
print(np.__version__)

Sample Output:

1.12.0

NumPy version:

class numpy.lib.NumpyVersion(vstring): Parse and compare numpy version strings.

New in version 1.9.0.
Parameters vstring : str
NumPy version string (np.__version__).

Python Code Editor:

import numpy as np
print(np.__version__)

Improve this sample solution and post your code through Disqus