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
{{ message }}
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
if t < self._lcfr_threshold & t % self._discount_interval == 0:
I don't know why do you use binary compare '&' instead 'and' in this particular condition, I think is a typo.
The problem is that, 2 < 4 & 2 % 2 == 0 --> False
because in python "& vs and" has a different operator precedence you need to use parenthesis or easier "and"
if t < self._lcfr_threshold and t % self._discount_interval == 0
The text was updated successfully, but these errors were encountered:
if t < self._lcfr_threshold & t % self._discount_interval == 0:
I don't know why do you use binary compare '&' instead 'and' in this particular condition, I think is a typo.
The problem is that,
2 < 4 & 2 % 2 == 0
--> Falsebecause in python "& vs and" has a different operator precedence you need to use parenthesis or easier "and"
if t < self._lcfr_threshold and t % self._discount_interval == 0
The text was updated successfully, but these errors were encountered: