Computer Science

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

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

Python Libraries

4 Likes

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.

Answered By

1 Like


Related Questions