1 00:00:00,000 --> 00:00:03,030 Hi, welcome back. In this section you will learn 2 00:00:03,031 --> 00:00:06,870 about list comprehensions. Now list comprehensions 3 00:00:06,900 --> 00:00:10,440 are similar to for loops. The main difference is 4 00:00:10,441 --> 00:00:13,830 that in a list comprehension you write the code in 5 00:00:13,831 --> 00:00:17,160 one single line, and with for loops you have 6 00:00:17,161 --> 00:00:20,880 multiple lies. And also list comprehensions are a 7 00:00:20,881 --> 00:00:24,390 special case of for loops, they are used when 8 00:00:24,391 --> 00:00:28,320 you have when you want to construct a list. So a 9 00:00:28,321 --> 00:00:32,130 list comprehension is a loop that constructs a 10 00:00:32,131 --> 00:00:35,640 list. You can construct a list also with a for 11 00:00:35,641 --> 00:00:39,240 loop. Both as I said the list comprehensions 12 00:00:39,241 --> 00:00:42,720 aren't just a one line so that makes the code more 13 00:00:42,750 --> 00:00:46,950 elegant, more Pythonic. So let's learn about list 14 00:00:46,951 --> 00:00:50,433 comprehensions in this section using examples.