1.Introduction
Conditions in python helps us in many ways as they are the block of code in which we can specify some condition in the code to be performed.
2.If
The if statement shows a code for a decision making statement. 'if' is the keyword and ended by ':' at the end.
syntax
The output for above example is
3.Elif
The elif condition means that if the previous condition is not satisfied then elif statement will be checked. The 'elif' is the keyword and ended by colon.
syntax
The output for above example is
4.Else
The else statement means that if the 'if' or 'elif' statement is not true then this will be correct.
The output for above example is
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (3)
Good for beginners.
Good intro for a Python beginner.
Good work.