Python is a language that can be compiled and interpreted; therefore, when running a Python program, it is first compiled and then line-by-line interpreted. In Python, the compile portion is removed after the code is performed to prevent the programmer from adding needless complexity.