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

Sample Output:


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:

Improve this sample solution and post your code through Disqus