What's wrong with my code?

Hi!
Can anyone explain to me why
“if self.stock[color] == 0:” needs to be “if self.stock[color] < 1:”
image