+ 6

Explain the output of this code.

What's the significance of * sign here ?? https://code.sololearn.com/ck3zcpDZFiP1/?ref=app

10th Apr 2019, 6:00 AM
Arushi Singhania
Arushi Singhania - avatar
3 Answers
+ 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).
10th Apr 2019, 6:24 AM
Diego
Diego - avatar
+ 4
Diego Thx for that... I understand * sign. But sill I have confusion in output of code.. Can u explain it once ??
10th Apr 2019, 6:13 AM
Arushi Singhania
Arushi Singhania - avatar