We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
from the docs, if * appears before a callable, then it evaluates to an iterable. e.g if you have function foo that evaluates to ['a,b,c] and call it here [1,2,*foo,3,4]
you get 1,2,a,b,c,3,4
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Print Function
You are viewing a single comment's thread. Return to all comments →
from the docs, if * appears before a callable, then it evaluates to an iterable. e.g if you have function foo that evaluates to ['a,b,c] and call it here [1,2,*foo,3,4] you get 1,2,a,b,c,3,4