Python allows us to join multiple conditions for one if/elif statement.
For example, we can check if the sky
is "cloudy" and if the weather
is "humid" to determine if it will rain.
Python provides two inbuilt keywords to help us join multiple conditions together.
and
The and
keyword is used to ensure that both conditions should pass for the print statement to execute. If even one of the condition fails, the print statement is skipped.
or
The or
keyword is used to ensure that any one of the conditions should pass for the print statement to execute. If both conditions fail, the print statement is skipped.