Args and Kwargs - Intermediate Python Programming p.25

preview_player
Показать описание
Welcome to part 25 of the intermediate Python programming tutorial series. In this tutorial, we're going to cover *args and **kwargs.

The idea behind *args and **kwargs is that there may be times when you have a function and you want to be able to handle an unknown number of arguments. The *args will handle for any number of parameters, and **kwargs will handle for any number of keyword arguments (hence kwargs).

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

I like how your videos are direct, simple & yet informative. I've been taking Python, and this is by far the best explanation of args & kwargs I've ever seen.

MoeCodes
Автор

Thank you so much. A lot of videos on this topic assume a prior level of understanding, and dive into showing you without explaining or drawing analogies. I found the lists/dict comparison very useful. 10/10!!

sera
Автор

Iv been seeing *args and **kwargs all over the place not knowing what to make of them. Thanks so much for making an easy to understand video

sdr
Автор

Thank you for this. I never quite understood this while I was learning the basics, but now that I need it, you made it very clear. :)

carlosfabila
Автор

hey man just wanted to say I happened to come across this video and it really helped me get a better understanding of args and kwargs in python. im a beginner to coding/programming (learning online self taught) taking a couple courses on UDEMY for python, but I was searching for more explanations/examples and thats when I saw this video. helped me gain a better idea of how to use them in functions and what the purpose was. just subscribed and going to check out more content of yours

ashanlingam
Автор

@9:15 Is using str(x) when also using format redundant?

johnnysim
Автор

I just realized if u weren't here I was still playing with (def somefunc(): return 'blah blah blah') -, -
Thanks for your amazing tutorials

alirezaayinmehr
Автор

Args and kwargs sounds like a currency they made up in futurama

tielessin
Автор

Hello Harrison, just a quick observation. I notice u write this statement a lot
import matplotlib.pyplot as plt
from matplotlib import style
style. use('ggplot')

But u can really shrink the imports into one like like this:
from matplotlib import pyplot as plt, style

Ps: I love ur tutorials. lots of fun + learning 👍

victor-iyi
Автор

Great explanation and example. Thank you!!

jeremiahv
Автор

Why wasn't the site title recognized as an argument?

alexliu
Автор

I just found out about your channel, and I'm loving it!
where can I find the playlist for the rest of the series?

TalsonHacks
Автор

Thanks, awesome video. Gonna check out the series.

vikitor
Автор

I got scared when you typed "=[]" and "={}" in the function parameters, most painful gotcha in the entire language

willjohnson
Автор

I think it would have been good to explain what was happening (ie. asterisks for unpacking)

Joshua-bxmt
Автор

This is awesome explanation. thanks, do you have any series for learning Pythin?

parinda
Автор

I'm guessing if graph_me had more objects inside of it, an error would be raised?

manthatsawesoem
Автор

Awesome series. What do you recommend I do now since this series is finished?

viktoryx
Автор

thanks for videos your awesome!!!
is it the last video of this series?

asadullahfarooqi
Автор

Thanks a lot! I needed that explained clearly

noo-sho