22. List Set Dict Comprehensions [Python 3 Programming Tutorials]

preview_player
Показать описание
This tutorial covers list (and set/dict) comprehensions which can be used to construct a list, set or dict in a dynamic mathematical way.

Next Video:

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

Hoi ; I m new in the programming world ( learnig python since 3 weeks now with no experience ) :
why d = { city:country for city, country in zip(cities, countries)} ? is not long coding ?
why not --> d = dict(zip(cities, countries)) ?

dsdridi