Skip to content

Conversation

@ikostan
Copy link
Owner

@ikostan ikostan commented Oct 12, 2025

No description provided.

Add type hint for the return: -> list[str] to make it explicit.
In the middle calculation, len(spaces) could be avoided since spaces is a str of known length—use (letter_index - i) * 2 directly for tiny perf gain, but it's negligible.
Consider adding a check for letter == 'A' early to skip the loop if desired, but the current loop handles it fine.
@ikostan ikostan self-assigned this Oct 12, 2025
@ikostan ikostan added documentation Improvements or additions to documentation enhancement New feature or request exercism labels Oct 12, 2025
@ikostan ikostan moved this to In Progress in Exercism: Python Track Oct 12, 2025
@ikostan ikostan merged commit 0f6ccb0 into exercism-sync/0510117d0a4354b3 Oct 12, 2025
8 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Exercism: Python Track Oct 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request exercism

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants