Join the conversation

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

Python Uses PEMDAS Rules
Reply

Python Uses PEMDAS Rules
Reply

Python Uses PEMDAS Operators
Reply

print(x > y or x = z or x <= z) We can use or to separately tell the answer
Reply

Learning
Reply