The first is positional argument the later is keyword argument Both of them are for arbitrary number of arguments.
So For arbitrary number of arguments is not difference for us witch one we use of them?
*args come first and are positional. Basically treat it like an array. **kwargs must come after any positional arg and it's keyword based, which means there's no need to go through them based on their position
Обсуждают сегодня