Home >Backend Development >Python Tutorial >or how to write it in python
What are logical operators in Python?
Logical operators include not, and and or. Python language supports logical operators. The following assumes that variable a is 10 and b is 20:
The above example output result
Output result of the above example:
Note: The above code is run in Python2.7 version
The above is the detailed content of or how to write it in python. For more information, please follow other related articles on the PHP Chinese website!