Skip to content

Fix off-by-one error in some_python_code.py#18

Open
AnthonyHu05 wants to merge 5 commits intoCSES-Open-Source:masterfrom
AnthonyHu05:master
Open

Fix off-by-one error in some_python_code.py#18
AnthonyHu05 wants to merge 5 commits intoCSES-Open-Source:masterfrom
AnthonyHu05:master

Conversation

@AnthonyHu05
Copy link

The previous loop used range(length + 1), which caused the loop to run one extra time and triggered an "Index Out of Bounds" error. I changed it to range(length) to fix this issue.

@AnthonyHu05 AnthonyHu05 changed the base branch from pull_request to master December 14, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants