Get the NumPy version

EasyNumPy Programs · 1 of 100

Write a Python program to get the installed NumPy version.

Advertisement
Output
2.5.4

Approach

  1. np.__version__.

Solution

Python
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.

More numpy programs

← All 100 NumPy Programs

Leave a Comment