Python‎ > ‎keywords‎ > ‎

and


Definition
a Boolean operator 'and' that join the value one.

Examples
In this example 1, three variable values are assigned to numeric value and compare with each other with comparative operators. The return of the value False statement is by default and however, you can have any statement be displaying by utilizing if statement with print command.
 >>> a=33
>>> b=34
>>> c=56
>>> b < a and c
Output
False
>>> a > a and c
False 

__and__
The method is equal to "and" and it returns with set.intersection.
 >>> set1={4,5,6,7}
>>> set2={6,7,8,9,10}
>>> set1.__and__(set2)
{6, 7}


Comments