Jump to content

Real Python - How to Write Pythonic Loops


Recommended Posts



21f64560de0c4d248d1ba8da9ac30d7f.jpeg
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.

Homepage
https://realpython.com/courses/how-to-write-pythonic-loops/




https://hot4share.com/gfi7b3xdxlw1/h6xwi.How.to.Write.Pythonic.Loops.rar.html
[b]Download (Uploadgig)[/b]
https://uploadgig.com/file/download/8D89a49941ab74ad/h6xwi.How.to.Write.Pythonic.Loops.rar
Download ( Rapidgator )
https://rapidgator.net/file/4935f34f3f89161f22cf73f1232f913c/h6xwi.How.to.Write.Pythonic.Loops.rar.html
Download ( NitroFlare )
http://nitro.download/view/CC444BAE40D352C/h6xwi.How.to.Write.Pythonic.Loops.rar


Links are Interchangeable - No Password - Single Extraction
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...