Python Practice › NumPy Programs › Program 1
Get the NumPy version
Write a Python program to get the installed NumPy version.
Output
2.5.4
Approach
np.__version__.
Solution
import numpy as npprint(np.__version__)Output
2.5.4
Line by line
Line 1
np is the standard alias for NumPy.
Learn the concept
New to this topic? Read the lesson, then come back.