Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
zehengl committed Feb 15, 2024
1 parent eb473ff commit 31c105c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/calculator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
while True:
try:
print(f"{eval(input()):.2f}")
except:
break

0 comments on commit 31c105c

Please sign in to comment.