+ 1

def foo(a,*b): return a,b

What is the meaning of *b here??

8th Jul 2019, 4:24 AM
ashwani verma
ashwani verma - avatar
2 odpowiedzi
+ 2
def foo(a, *b): return a, b print(foo(1, 2, 3)) It gives the output as (1, (2, 3))
8th Jul 2019, 4:25 AM
ashwani verma
ashwani verma - avatar