Learn to use if statements in Python. if statement basically checks for the given condition, and if the condition is true or if the condition is valid, then it will execute the code that is written inside the block of if statement. We can also define else statement which will be executed if the condition given in the if statement is not valid.

We can provide multiple conditions by using elif statement. When there are multiple conditions, Python will only execute one statement that possess the valid condition.

Subscribe : https://www.youtube.com/channel/UC-FZ9Vs5uXEAwcmrOoKoCjA

#python

How to Use if Statements in Python
1.80 GEEK