How to use constants in Python applications
· 15 min read
In this post we will discuss in detail five different examples of how to use constants in Python applications:
- simple sets of possible values,
- class attributes,
- constants packages,
- configuration files,
- enums.