► Master advanced features in Python with easy to follow code examples
A really cool but slightly arcane feature is the ability to “unpack” function arguments from sequences and dictionaries with the * and ** operators. These are sometimes also called “splat“ operators.
They’re most frequently used in Python function definitions along with the *args and **kwargs pattern.
Besides the * operator for unpacking sequences like tuples, lists, and generators into positional arguments there’s also the ** operator for unpacking keyword arguments from dictionaries.
In this video I’ll give you an introduction to function argument unpacking in Python with a few straightforward examples.
FREE COURSE – “5 Thoughts on Mastering Python“
PYTHON TRICKS: THE BOOK
SUBSCRIBE TO THIS CHANNEL:
* * *
► Python Developer MUGS, T-SHIRTS & MORE:
FREE Python Tutorials & News:
» Python Tutorials:
» Python News on Twitter: @dbader_org
» Weekly Tips for Pythonistas:
» Subscribe to this channel:
6 views
1003
247
13 hours ago 00:05:48 0
В России построят Мега тюрьму вместо базы Газпрома | Побег из нее не возможен
20 hours ago 00:05:38 0
КАК ИСПОЛЬЗОВАТЬ GOOGLE VEO 3 БЕСПЛАТНО ?! | НОВАЯ НЕЙРОСЕТЬ ОТ GOOGLE - VEO 3
22 hours ago 00:00:00 0
1 Июня! Авторский тренинг от долларового миллионера! Начало в 17:10 Москвы!
1 day ago 00:42:39 2
Самый большой скандал в истории Америки!
1 day ago 00:23:25 1
🇷🇺 Многодетная семья переехала в Россию по той самой новой «визе ценностей»