Unpacking Operators in Python: What are * and **?

preview_player
Показать описание
Today we learn about unpacking operators in Python and how to use them.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

💼 Services 💼

🌐 Social Media & Contact 🌐
Рекомендации по теме
Комментарии
Автор

I love your channel, because I'm trying to make my understanding better and deeper. I just love how you go through different examples and start slow, then you move up to harder problems.

PoeLemic
Автор

The * operator can be used to unpack an iterable into separate variables. The ** can be used to unpack a dictionary. But in the case of *args and **kwargs used as function parameters, they are packing and not unpacking. *args takes several positional arguments and packs them into a tuple. **kwargs takes several named parameters and packs them into a dictionary.

gedtoon
Автор

Your videos are so helpful. i learn something new every time i watch.
Thank you very much!!!

cvicracer
Автор

Clearly explained with easy to follow examples, thank you!

allenmark
Автор

Wow this is really each day i find out something new about python ... such endless field of possibilities

PrfeBboy
Автор

Fantastic video! Thank you. I knew a little bit about unpacking operators but not enough to really use them.

johnwight
Автор

This was useful for me, even as someone who has made use of both unpacking operators aplenty.

DarthJarJar
Автор

* unpacking is something that i had no idea of thanks NN!

r.e.keerthana
Автор

Thanks, I could have done something else this morning and I wouldn't have wasted it looking for ways to do this if I'd known this was coming out. Python is very powerful but it's sometimes difficult when you don't know what you're looking for or what it may be called

TheEcherriman
Автор

Great video!!! Keep going with the great work!!!

allanribeiro
Автор

I have a question, what OS are you using?

voximir
Автор

Can I get a video of when to use arga kwargs

chriskeo