I'm a professional software engineer on a journey to improve my skills. Follow me as I share what I've learned throughout my career and the things I'm learning now so that you, too, can improve.
e.g. "for (int i = 0; i < array.size(); i++)",
as seen in example A below.
It is better to use for loops in a "for-each" style, as seen in example B:
i.e. "for x in ...".
If you need the indices, example C is the way to go.
#Python #LearnPython
e.g. "for (int i = 0; i < array.size(); i++)",
as seen in example A below.
It is better to use for loops in a "for-each" style, as seen in example B:
i.e. "for x in ...".
If you need the indices, example C is the way to go.
#Python #LearnPython
You can insert expressions within "{ }" in many different ways including a variable name followed by a "=".
This is great for quick debugging.
#Python #LearnPython
You can insert expressions within "{ }" in many different ways including a variable name followed by a "=".
This is great for quick debugging.
#Python #LearnPython