Skip to content

Instantly share code, notes, and snippets.

@GiorgioSgl
Created May 8, 2022 16:37
Show Gist options
  • Save GiorgioSgl/d0ac8d9855b6f3eea129ec63ab6562b6 to your computer and use it in GitHub Desktop.
Save GiorgioSgl/d0ac8d9855b6f3eea129ec63ab6562b6 to your computer and use it in GitHub Desktop.
i = 0
while i < len(my_list):
i = i + 1
pass
@Helias
Copy link

Helias commented Oct 18, 2022

you should use i += 1 to improve the performances and execute again the tests checking the time
some sources about performances reason https://stackoverflow.com/a/41446882/5081063

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment