Constants in Fortress
Constants in Python#
Python supports constants of character, string, boolean, and numeric values. Here’s how you can declare and use constants in Python.
To run the program, save the code in a file named constants.py
and use the Python interpreter to execute it.
Now that we understand how to use constants in Python, let’s explore more about the language.