Args Vs Kwargs. What's the Difference? #python #tips #shorts

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
if you're still adding multiple arguments to your functions then please stop because there's a much better way of doing it the start operator is a bit similar to the rest operator in JavaScript it allows you to pass an arbitrary number of arguments to a function and create a tuple from them but if you wanted to add named arguments you would have to use keyword arguments with two asteris which allows you to pass an arbitrary number of named arguments to a function and create a dictionary from them but these could be called whatever you want and positional arguments always go first never last
Info
Channel: Better Stack
Views: 5,121
Rating: undefined out of 5
Keywords:
Id: UVF5HQhcto4
Channel Id: undefined
Length: 0min 34sec (34 seconds)
Published: Wed Jun 26 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.