Home »
Python »
Matplotlib MCQs
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?
- __version__
- version()
- Both A and B
- 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__)