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.
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.
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
When u have same operation repeated for an unknown number of times, for which normally you would put a for loop with the length of the parameter, but this is more efficient
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.
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.
Your videos are so helpful. i learn something new every time i watch.
Thank you very much!!!
Clearly explained with easy to follow examples, thank you!
* unpacking is something that i had no idea of thanks NN!
This was useful for me, even as someone who has made use of both unpacking operators aplenty.
Wow this is really interesting..... each day i find out something new about python ... such endless field of possibilities
Fantastic video! Thank you. I knew a little bit about unpacking operators but not enough to really use them.
Nicely explained, thx!
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
Same goes for everything
Great video!!! Keep going with the great work!!!
awesome, thank you
short and concise! :)
Can I get a video of when to use arga kwargs
When u have same operation repeated for an unknown number of times, for which normally you would put a for loop with the length of the parameter, but this is more efficient
I have a question, what OS are you using?
I love all your videos...
❤
also for tuples.