I don’t understand the difference between &
and and
, even if I read some other questions about it.
My code is:
f=1
x=1
f==1 & x==1
Out[60]: True
f==1 and x==1
Out[61]: True
f=1
x=2
f==1 and x==2
Out[64]: True
f==1 & x==2
Out[65]: False
Why is it the second &
False
, whereas the first is True
?