In this series, we will go over my notes for Python. And in this video, we are going to cover list comprehensions, dictionary comprehensions and set comprehensions. We will see what they are and how they work.
Links:
GitHub Repo: https://github.com/SebastianMantey/Python-Tutorial
Full Playlist: https://www.youtube.com/playlist?list=PLPOTBrypY74yHNvmKlf9bfYuwMlbiPk94
Timestamps:
0:00 - Intro
0:13 - List comprehension definition
1:11 - Basic list comprehension
1:58 - List comprehension with an if-clause
3:32 - List comprehension with a for-clause
5:09 - Nested list comprehension
10:16 - List comprehension with an if/else-statement
11:59 - List comprehension side notes
13:42 - Dictionary comprehension
14:53 - Set comprehension