Aug

27

2021

How to Write Pythonic Loops

supnatural 27 Aug 2021 00:18 LEARNING » e-learning - Tutorial

How to Write Pythonic Loops
How to Write Pythonic Loops
MP4 | Video: h264, 1920x1080 | Audio: AAC, 44.1 KHz
Language: English | Size: 16.9 MB | Duration: 6 Lessons | 9m

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.

You can use these techniques to refactor your existing Python for loops and while loops in order to make them easier to read and more maintainable. You'll learn how to use Python's range(), xrange(), and enumerate() built-ins to refactor your loops and how to avoid having to keep track of loop indexes manually.

The main takeaways in this tutorial are that:

Writing C-style loops in Python is considered not Pythonic. Avoid managing loop indexes and stop conditions manually if possible.

Python's for loops are really "for each" loops that can iterate over items from a container or sequence directly.

https://nitro.download/view/1AFDFBE41A56026/How_to_Write_Pythonic_Loops.rar


https://rapidgator.net/file/930528a57cf47770978c1f37ec784d6e/How_to_Write_Pythonic_Loops.rar.html

High Speed Download

Add Comment

  • People and smileys emojis
    Animals and nature emojis
    Food and drinks emojis
    Activities emojis
    Travelling and places emojis
    Objects emojis
    Symbols emojis
    Flags emojis