If Statement in Python

An if statement in Python is the simplest decision-making statement that allows the programmer to execute a block of statements only if some condition is true. We use if statement in the Python program to compare data and to make…


