Book Image

Getting Started with Modern Python [Video]

By : Joran Beasley, joran beasley
Book Image

Getting Started with Modern Python [Video]

By: Joran Beasley, joran beasley

Overview of this book

In this course, you will start by setting up your development environment, including downloading Python and setting up your IDE (PyCharm); you'll then be introduced to Python lists and list comprehensions. The course will then show you what a generator is and why you might want to use one. Further on, you will be introduced to functions and decorators, and see how you can use them. You will then learn how to create a very simple, single-file Python program, and how to execute it both from the command line and from within the IDE. You'll also get a very brief introduction to debugging. By the end of the course, you'll have learned how to manipulate strings, parsing and printing them. The code and other supporting files for this course are available at https://github.com/PacktPublishing/Getting-Started-with-Modern-Python
Table of Contents (5 chapters)
Chapter 4
Generators and Itertools
Content Locked
Section 1
Some Problems with List Comprehensions
List comprehensions, while some are not a silver bullet and still present with some problems that we need to keep in mind. - Implement a list comprehension that has a long execution time - Observe the behavior of the software - Understand some key problems with user experience that list comprehensions can exacerbate