Errors detected during execution are called exceptions and are not unconditionally fatal: you will soon learn how to handle them in Python programs.
docs.python.org