What is the main task of an assembler in the compilation process?

Explanation:
An assembler converts assembly language into machine code.