+ 6
Explain the output of this code.
What's the significance of * sign here ?? https://code.sololearn.com/ck3zcpDZFiP1/?ref=app
3 Respuestas
+ 1
foo(1, 2)
a == 1
b == (2,)
a*b == 1*(2,) == (2,).
foo(2,2)
a == 2
b == (2,)
a*b == 2*(2,) == (2,2).
foo(1,2,3)
a == 1
b == (2,3)
a*b == 1*(2,3) == (2,3).
+ 4
Diego Thx for that... I understand * sign. But sill I have confusion in output of code.. Can u explain it once ??
+ 1