+ 1
Help
Tell me what the 'and' operator looks like in Python
3 Answers
+ 1
In python there are 'and' keyword and '&' bitwise operator.
While 'and' is used to compare objects, '&' is used as the 'AND' binary operator:
if 'a' and 'b':
print('yes') #will print yes
print(1&2) #will print 0.
0
Thank you
0
And operator print when both condition are true..
Suppose
If (x and y ):
Print("true")
Its print true when both cond are true...