0

How does this code execute? I can't under stand *3 step. Can anyone explain?

a,b,*c=[1,2,3,7] print(*c) Output=3 7

14th Mar 2020, 12:42 PM
Bawantha Nawela
Bawantha Nawela - avatar
2 Respostas
+ 6
I think it's like variables declaretion like a, b, c=1,2,3 if you do a, b, *c=1,3,4,5,6 a & b is 1 & 3 than c holds the all number from 4,5,6 You can try it in code playground.
14th Mar 2020, 1:13 PM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar