def foo(a,*b): return a,b | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 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
1 Antwort
+ 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