Knowing that Python is an interpreted language, is there any way to compile the program in Python? By that I mean, how to check for syntax errors without having to expect such a part of the program to occur for verification. Because errors are only shown in terminal or IDE at runtime.