CBSE Class 12 Computer Science Question 8 of 62

Using Python Libraries — Question 3

Back to all questions
3
Question

Question 3

In Python which is the correct method to load a module math ?

  1. include math
  2. import math
  3. #include<math.h>
  4. using math
Answer

import math

Reason — The syntax for importing whole module is : import modulename. According to the syntax, the correct method to load a module math is import math.