Hi, welcome back. In this section you will learn
about list comprehensions. Now list comprehensions
are similar to for loops. The main difference is
that in a list comprehension you write the code in
one single line, and with for loops you have
multiple lies. And also list comprehensions are a
special case of for loops, they are used when
you have when you want to construct a list. So a
list comprehension is a loop that constructs a
list. You can construct a list also with a for
loop. Both as I said the list comprehensions
aren't just a one line so that makes the code more
elegant, more Pythonic. So let's learn about list
comprehensions in this section using examples.