Vidyalelo
Python · Q54

Module in Python

Programming · Python · question 54

Q54

How can you check if a module is available and can be imported in Python?

A.
By using a try...except block with an import statement
Answer
B.
By using the check_module function
C.
By using the module_exists keyword
D.
By using the available_module function

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board