if-else is a keyword in python and it is used as a conditional block in which when a condition is true then if block is executed otherwise else block is executed