Explaination of Conditional Statement, Loops and Function