Skip to content

Commit

Permalink
Update basic-calculator-iv.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kamyu104 authored Jan 22, 2018
1 parent 111092a commit 8f18cdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Python/basic-calculator-iv.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# Space: O(e + d * t), e is the number of evalvars

class Poly(collections.Counter):
def __init__(self, expr=""):
if not expr:
def __init__(self, expr=None):
if expr is None:
return
if expr.isdigit():
self.update({(): int(expr)})
Expand Down

0 comments on commit 8f18cdc

Please sign in to comment.