Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Python Comprehensions!
You have completed Python Comprehensions!
Preview
Before we dive into Comprehensions, let’s quickly review the functionality that it’s designed to improve: loops.
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
[MUSIC]
0:00
Hey there, I'm Rachel,
a Python teacher here at Treehouse and
0:00
welcome to the Python
comprehensions workshop.
0:04
In this workshop, you'll learn about
one of Python's most powerful features,
0:08
comprehensions.
0:12
It's a concise and readable way to
create new lists, dictionaries, and
0:14
sets from existing data
without using loops.
0:19
It allows for more elegant and
efficient code and
0:23
is widely used in the Python community.
0:26
We'll start with the refresher on loops,
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up