You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the code above, it looks like the intention for the ampersand is to connect two conditions with an AND operator.
However, in Python the AND operator is and, while the ampersand (&) is the bitwise AND operator.
More information on the difference between & and and in Python.
Even though in the case above even the ampersand would work, for clarity and preciseness, consider replacing the & with and when they are in place of an AND operator.
The text was updated successfully, but these errors were encountered:
There are a few lines in which the ampersand (
&
) operator is used.For example:
replace_landsurface/src/replace_landsurface_with_BARRA2R_IC.py
Lines 79 to 80 in cdb8734
From the code above, it looks like the intention for the ampersand is to connect two conditions with an
AND
operator.However, in Python the
AND
operator isand
, while the ampersand (&
) is the bitwise AND operator.More information on the difference between
&
andand
in Python.Even though in the case above even the ampersand would work, for clarity and preciseness, consider replacing the
&
withand
when they are in place of anAND
operator.The text was updated successfully, but these errors were encountered: