Python is an interpreted, object-oriented, high-level programming language with dynamic semantics.
Constants: Variables that hold a value and cannot be changed are called constants.
#initialization of constants PI = 3.14 LAMBDA = 0.01
We initialize constants in capital letters as it helps us to write more semantic than static code.
import constant print(constant.PI) print(constant.LAMBDA)
View all Courses