Which method/attribute is used to check the installed version of matplotlib?

8. Which method/attribute is used to check the installed version of matplotlib?

  1. __version__
  2. version()
  3. Both A and B
  4. None of the above

Answer: A) __version__

Explanation:

The __version__ attribute of matplotlib can be used to check the currently installed version of the matplotlib module. Consider the below-given example –

import matplotlib
print(matplotlib.__version__)

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.