How to Write Pythonic Loops: Overview
One of the easiest ways to spot a developer who has a background in C-style languages and only recently picked up Python is to look at how they loop through a list. In this course, you’ll learn how to take a C-style (Java, PHP, C, C++) loop and turn it into the sort of loop a Python developer would write.
In this lesson, you’ll look at the sort of loop you might expect a developer coming from a C-style language to write in Python. Next, you’ll look at ways in which you can fix this loop in order to make it more Pythonic.
Become a Member to join the conversation.