Step 1: A compiler is a program that translates a high-level programming language into machine code or an intermediate language.
Step 2: High-level languages like C, Java, or Python require a compiler to convert the code into a format that the computer can execute.