Dictionary Comprehension - How they work and how to initialize and create them || Python Tutorials.

preview_player
Показать описание
In this python Beginner tutorial, we will briefly take a look at dictionary comprehension , how they work and how to also initialize and create them.Also we will look at using if statement and multiple if statements with the dictionary comprehension. Now dictionary comprehension give us a cool and elegant way to also intialize and create new dictionaries using just a single line of code. After this friendly tutorial will be able the master how to best intialize and create new dictionaries using just a single line in python.

MAIN VIDEO LINK

SOURCE CODE ON GITHUB

SIMILAR VIDEOS ON THE BUILT-IN FUNCTIONS

VIDEO CHAPTERS
00:00 - Video intro
00:58 - What is a dictionary
01:16 - What is a dictionary comprehension
01:27 - How to use both functions and dictionary comprehension
07:51 - Examples
14:11 - Dictionary comprehension with if statement
20:56 - Dictionary comprehension with multiple if statements

HAPPY CODING

▶️ You Can Find Me On:
Рекомендации по теме
Комментарии
Автор

Was this video helpful ? . if it was kindly give it a like, subscribe ans also share this video to friends. Also feel free to leave a comment if you think i might have left somethings out and let's get interactive in here. Thank you.

dky_code