kwargs tag

2 questions


1 answers
86 views
0
What are ** and * in the parameters?

What does * and ** attached to param2 do in the code below?def foo(param1, *param2):def bar(param1, **param2):


1 answers
100 views
0
**To extract a value from kwargs?

How do I extract specific values from **kwargs?I know that kwargs is dict type,I'm not sure if I should approach like dict or use the get() function when approachingPeople seem to write whatever they ...

2 years ago

© 2024 OneMinuteCode. All rights reserved.