A Swift literal is a direct value of a variable or a constant. It may be a number, character or string. Literals are used to initialize or assign value to variables or constants.
Different types of literals are :
* Binary Literals
* Octal Literals
* Hexadecimal Literals
* Decimal Literals