MACHINE LANGUAGE: This is the closest language to the hardware. It consist sets of instructions that are executed directly by the computer. These instructions are in sequence of binary bits. Each transaction performs a very specific and small task.
Example: SUB AX, BX = 00001011 00000001 00100010 is an instruction set to subtract values of two registers AX and BX.
ASSEMBLY LANGUAGE:It is an improvement over machine language. Similar to machine language, assembly language also interacts directly with the hardware. Instead of using raw binary sequence tom represent an instruction set, assembly language uses “mnemonics”.