CBSE Class 12 Computer Science Question 6 of 62

Using Python Libraries — Question 1

Back to all questions
1
Question

Question 1

Which operator is used in Python to import all modules from packages ?

  1. . operator
  2. * operator
  3. -> symbol
  4. , operator
Answer

* operator

Reason — The syntax to import all modules from package is : from <modulename> import *. According to the syntax, * operator is used to import all modules from a package.