#Shorts #Python
Did you know that in addition to list comprehension, which allows you to create a new list from one or more existing ones, you can also use Dictionary Comprehension in Python? The idea is the same as with list comprehension but you will get a dict instead. The syntax is not too much different and once again, you can do it in just one line of code! Isn't it a nice Python trick?!
-------------------------------------------------------------------------------------
Links:
Blog: [ Ссылка ]
Twitter: [ Ссылка ]
Instagram: [ Ссылка ]
Youtube: [ Ссылка ]
Ещё видео!