Skip to content

Commit

Permalink
python/raindrops: 2nd iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
vpayno committed Apr 9, 2024
1 parent bbc693a commit 6a51ac3
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 103 deletions.
2 changes: 1 addition & 1 deletion python/raindrops/.coverage.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
<coverage branch-rate="1" branches-covered="8" branches-valid="8" complexity="0" line-rate="0.9167" lines-covered="11" lines-valid="12" timestamp="1712624760382" version="4.5.4">
<coverage branch-rate="1" branches-covered="8" branches-valid="8" complexity="0" line-rate="0.9167" lines-covered="11" lines-valid="12" timestamp="1712626748859" version="4.5.4">
<!-- Generated by coverage.py: https://coverage.readthedocs.io -->
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
<sources>
Expand Down
2 changes: 1 addition & 1 deletion python/raindrops/raindrops.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def convert(number: int) -> str:
if number % 7 == 0:
sounds.append("Plong")

if len(sounds) == 0:
if not sounds:
sounds.append(f"{number}")

return "".join(sounds)
2 changes: 1 addition & 1 deletion python/raindrops/raindrops.py,cover
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
> if number % 7 == 0:
> sounds.append("Plong")

> if len(sounds) == 0:
> if not sounds:
> sounds.append(f"{number}")

> return "".join(sounds)
Loading

0 comments on commit 6a51ac3

Please sign in to comment.