Skip to content

Commit

Permalink
Fix code formatting via Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
likechrisss committed Dec 29, 2024
1 parent d19de11 commit 3585f31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions solutions/spongecase.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def spongecase(text: str) -> str:
result_chars = []
for index, char in enumerate(text):
if index % 2 == 0:
# Even index -> lowercase
result_chars.append(char.lower())
else:
# Odd index -> uppercase
result_chars.append(char.upper())
return "".join(result_chars)

0 comments on commit 3585f31

Please sign in to comment.