-
-
Notifications
You must be signed in to change notification settings - Fork 674
more usage of enumerate() #40916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
more usage of enumerate() #40916
Conversation
Documentation preview for this PR (built with commit 6d4d7bf; changes) is ready! 🎉 |
by using join at the end Co-authored-by: Martin Rubey <axiomize@yahoo.de>
return "0" | ||
|
||
s = " + ".join(terms) | ||
return s.replace("+ -", "- ") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the following lines should be removed, and there is whitespace. Sorry, that's an artefact of how github suggestions do not work :-(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed.. now fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Danke schön ! |
sagemathgh-40916: more usage of enumerate() as suggested by `ruff check --select=SIM113` ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. URL: sagemath#40916 Reported by: Frédéric Chapoton Reviewer(s): Frédéric Chapoton, Martin Rubey
as suggested by
ruff check --select=SIM113
📝 Checklist