diff --git a/calculator.py b/calculator.py index 54ef697..d01e661 100644 --- a/calculator.py +++ b/calculator.py @@ -1,5 +1,7 @@ class Calculator(): + from math import log + def __init__(self): self.total = 0.0 self.actions = [] @@ -75,8 +77,6 @@ class Calculator(): self.actions.append(f" = {self.total}") def log(self, val): - from math import log - print(log(val)) self.actions.append(f"log({val})")