__main__.py 301 B

1234567891011
  1. # -*- coding: utf-8 -*-
  2. """Module init-file.
  3. A module's __name__ is set equal to '__main__' when read from standard input,
  4. a script, or from an interactive prompt.
  5. """
  6. from my_module.utils import add_two_numbers
  7. print('Executed from command line...')
  8. print(f'2 + 2 equals {add_two_numbers(2, 2)}')