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.
CHANNEL LINK - / @dky_code
MAIN VIDEO LINK
youtube video - • Dictionary Comprehension - How they w...
SOURCE CODE ON GITHUB
code - https://github.com/Dicksonyankey/YouT...
SIMILAR VIDEOS ON THE BUILT-IN FUNCTIONS
Enumerate function - • Enumerate Function and how it works i...
Creating and working with python dictionaries - • Creating and working with python dict...
The concept of for loop - • Concept of For Loop in python
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:
linkedIn - / dickson-kwasi-. .
Instagram - / dky_code
TikTok - / dky_code