0

I need help...

Could someone help me understand args and kwargs? The lesson does not help. Same with lambda functions

28th Jan 2023, 7:17 AM
Killian
Killian - avatar
1 Answer
+ 11
More detailed articles: https://realpython.com/JUMP_LINK__&&__python__&&__JUMP_LINK-kwargs-and-args/ https://realpython.com/python-lambda/ *args and **kwargs, are function arguments which are not named explicitly, but expected to be used by the function. args is represented as a tuple (a group of values) and kwargs is represented as a dictionary. A lambda is just a function that is defined "on the fly", usually in the context of a higher order function like map or filter. In effect it is the same as using def, just shorter and you don't need to name the function, just use it.
28th Jan 2023, 8:00 AM
Tibor Santa
Tibor Santa - avatar