New course! Every coder should learn Generative AI!
Try a free lesson+ 1
def foo(a,*b): return a,b
What is the meaning of *b here??
1 Answer
+ 2
def foo(a, *b):
return a, b
print(foo(1, 2, 3))
It gives the output as (1, (2, 3))
What is the meaning of *b here??