Skip to content

Commit

Permalink
Add solution for register transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed Nov 8, 2024
1 parent a9d1640 commit 9c760b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/python/katas/py7kyu/cache_register.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"""Kata url: https://www.codewars.com/kata/66e509f59c8b4118ac009930."""
cache = []

def register_transaction(n: int | float) -> list[str]:
cache.append(f"${n:,.2f}")
return cache

0 comments on commit 9c760b8

Please sign in to comment.