Skip to content

Commit

Permalink
Update calculator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
diyorbekibragimov authored Jun 5, 2024
1 parent 16e8a78 commit 4abb88d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def add(s: str) -> str:
sum = 0
if (s == ""):
return "0"
s = s.replace('\n', ',')
L = s.split(",")
for i in range(len(L)):
if "." in L[i]:
Expand Down

0 comments on commit 4abb88d

Please sign in to comment.