My Python linter complains about the use "is not" instead of != for testing string values:
“Let’s move on and learn what most of the buttons in your calculator are bound to:
def update_equation(self, event):
...
12 elif label in operators and current_equation is not '' \
13 and self.last_button_pressed not in operators:
14 self.solution.SetValue(current_equation + ' ' + label)
15 ”
My Python linter complains about the use "is not" instead of != for testing string values:
“Let’s move on and learn what most of the buttons in your calculator are bound to:
def update_equation(self, event): ... 12 elif label in operators and current_equation is not '' \ 13 and self.last_button_pressed not in operators: 14 self.solution.SetValue(current_equation + ' ' + label) 15 ”
Doesn't seem to impair operation though.