Imagine writing a recipe for a very literal robot. The recipe must follow the language’s spelling and punctuation rules so a tool can translate it into actions.
Think of compilation as translating and printing an entire recipe before the cook begins. If the translator finds a broken rule, Go stops and reports a compile error instead of producing the meal.
Python commonly uses an interpreter that reads and carries out code while the program runs. Go usually compiles first. Both approaches turn human instructions into computer work; they simply organize that translation differently.