def foo(a,*b): return a,b | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponse
+ 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