What is happening in this code, I mean why *b directly converting it into string | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is happening in this code, I mean why *b directly converting it into string

https://code.sololearn.com/cfCKmZS5tjsU/?ref=app

31st Aug 2019, 6:41 AM
Nikhil Tale
Nikhil Tale - avatar
2 Answers
+ 6
* in an a variable acts as an unpacking arguments... A great tool if youre to recieve multiple inputs from a user and you dunno how many.!!!
31st Aug 2019, 9:05 AM
BlackRose Mike
BlackRose Mike - avatar
+ 1
Yeah read about it...
1st Sep 2019, 10:43 AM
Nikhil Tale
Nikhil Tale - avatar