Last active
May 9, 2023 04:18
-
-
Save mGalarnyk/4a0489a5c533aacfb00e22572e1bc33f to your computer and use it in GitHub Desktop.
Python for loop tutorial for the blog post: https://medium.com/@GalarnykMichael/python-basics-7-for-loop-4ebcbd9ae3ee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should also know that in Python, iterating over integer indices is bad style, and also slower than the alternative. If you just want to look at each of the items in a list or dict, loop directly through the list or dict.