In this example we will show how to combine conditional statements using the and keyword in Python.
Source Code
x = 5
y = 8
z = 10
if y > x and z > x:
print("Both conditions are True!")
Output:
Both conditions are True!
In this example we will show how to combine conditional statements using the and keyword in Python.
x = 5
y = 8
z = 10
if y > x and z > x:
print("Both conditions are True!")
Output:
Both conditions are True!