0 votes
in Python by
What are Python modules?

1 Answer

0 votes
by

A file containing Python code like functions and variables is a Python module. A Python module is an executable file with a .py extension.

Python has built-in modules some of which are:

  1. os
  2. sys
  3. math
  4. random
  5. data time
  6. JSON
...