Skip to content
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

enumerate #5

Open
GrenManSK opened this issue Sep 18, 2023 · 0 comments
Open

enumerate #5

GrenManSK opened this issue Sep 18, 2023 · 0 comments

Comments

@GrenManSK
Copy link

It's not really an issue but a tip that in arguments parsing

for loop (lines 65-79)

  • You use enumerate() with start = 0, which is default, you should change it to 1 inasmuch you don't use "index" variable at starting value, always running calculation which are not necessary

Changes

  • argv[index + 1] to argv[index]
  • for index, arg in enumerate(argv): to for index, arg in enumerate(argv, start = 1):
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

No branches or pull requests

1 participant