python And operator:
- The python And operator is one of the logical operators.
- In And operator, if both the operands are true then it returns true, otherwise false.
- And operator is applicable for boolean type and non-boolean type.
- For example: 1 And " a" then the result is "a".
- It is represented by the "&" symbol.
- It is written as x &y
syntax:(a&b).
# write a python program using And operator.
- x=23
- y=44
- print(x>10 and y>10)
- print(x
- print(x&y)
output: true
false
4