NumPy: Print the NumPy version in your system

NumPy: Array Object Exercise-1 with Solution

Write a NumPy 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-Numpy Code Editor:

Have another way to solve this solution? Contribute your code (and comments) through Disqus.

Previous: NumPy Array Object Exercises Home.
Next: Write a NumPy program to convert a list of numeric value into a one-dimensional NumPy array.

What is the difficulty level of this exercise?

Test your Programming skills with w3resource's quiz.

Share this Tutorial / Exercise on : Facebook and Twitter

Python: Tips of the Day

Join Strings in an Iterable:

>>> words = ('Hello', 'Python', 'Programmers')
>>> '!'.join(words)
>>> words_dict = {0: 'zero', 1: 'one', 2: 'two', 3: 'three'}
>>> '&'.join(words_dict.values())