I am running Python 3.6.4 with Anaconda and Spyder.
Does anyone know why the following is happening?
When I execute the following code python prints "yes" which it is obviously wrong.
import numpy as np
a = 0
c = np.ones(150)
b = np.ones(10)
if a < len(c) & len(b) < 3:
print('yes')
While when I made a slight modification the condition is not satisfied and python does not print anything
a = 0
c = np.ones(152)
b = np.ones(10)
if a < len(c) & len(b) < 3:
print('yes')
Furthermore if I change "&" with "and" everything is working as expected.