Can value of iterables be used as kwargs ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can value of iterables be used as kwargs ?

def func(**kwargs): print(kwargs) for i in ['abc','xyz']: for j in i: fun(j,i) //it should print {'a':abc,'x':xyz} // but it is printing simply {'j':i} ????? can somebody make me clear??

30th May 2018, 12:45 PM
Sandeep Kumar Suthar
1 Answer
+ 2
This might do what your looking for https://code.sololearn.com/c1qhO59pMmCx
30th May 2018, 4:35 PM
John Wells
John Wells - avatar