0
What happens here ?
s = 'Hello' print (*s) and the out put is H e l l o
2 Réponses
+ 4
search for "unpack operator"
+ 3
`*` is to unpack a list, and `**` is to unpack a dictionary.
You can consider `string` as a `char` list.
s = 'Hello' print (*s) and the out put is H e l l o