-
-
Notifications
You must be signed in to change notification settings - Fork 673
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
base: develop
Are you sure you want to change the base?
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 ! |
as suggested by
ruff check --select=SIM113
📝 Checklist