Join the conversation

Using Logical Operators (and, or)
Reply

Python use PEMDAS rule.
Reply

print((x>z) &(y<x))
Reply

python is based on PEMDAS operation
Reply

print (x>y , y<z)
Reply

Python uses PEMDAS, which is similar to BODMAS. The only difference is that PEMDAS is used in the US, while BODMAS is used in the UK.
Reply

For combining two logical operators you can use and, or like this: (x > z) or (y < z)
Reply

x 8 like this
Reply

Logical (and , or) operators are use to combine two or more comparision operators
Reply

Python internally use PEMDAS rule , it means (parenthesis , exponent , multiplication, division, addition , subtraction)
Reply