__main__.py

print('Hello World!')

constants.py

# Example: Module with constants

PI = 3.1415

PROGRAM_NAME = 'constants.py'

WEEKDAYS = ['MONDAY', 'TUESDAY', 'WEDNESDAY', 'THURSDAY', 'FRIDAY', 'SATURDAY', 'SUNDAY']

ADVANTAGES = [
    'Easy to remember',
    'No need to write quotes',
    'Aproppriate data types',
    'faster than having strings everywhere',
    'UPPERCASE means the value does not change',
    ]

Dr. Kristian Rother

I am a professional Python trainer, developer and author based in Berlin. I believe everybody can learn programming.

Contact me via:
+49 176 3052 4691
krother@academis.eu

Feedback

Thanks, everybody. Without your support... there would be no Spectacular Speaking...

Jerzy Zientkowski, Speakerslair

See also