List Comprehension and Dictionary Comprehension in Python

preview_player
Показать описание
This tutorial video talks about one of the most important topics in writing beautiful code in Python. List comprehension allows us to create beautiful lists and set in a single line of expression and its very readable. Most real life programmers, use this syntax instead of looping over a list to create a new list. This video lesson gives clear example of how you can use list comprehension in your practical code.

This is what we call as Pythonic code. We can also create dictionaries using Dictionary comprehension. We need key and value for creating dictionary like this.This video helps you learn list and dictionary comprehensions in a practical and concise way.

#Python #LearnProgramming

If you like our content, click on *SUBSCRIBE* button and click on Bell icon to receive latest and greatest updates of my video lessons.

Follow us on Facebook, Twitter, Instagram

Рекомендации по теме
Комментарии
Автор

Why do you need the f" for the keyword?

deedanner