0

What does enumerate function do

30th Jul 2019, 9:13 AM
SUNDARAMAN IYER
SUNDARAMAN IYER - avatar
4 odpowiedzi
+ 6
a = enumerate([1,72,30,40,10] print(list(a)) >>>>[(0,1),(1,72),(2,30),(3,40),(4,10)]
30th Jul 2019, 9:17 AM
Mikhail Gorchanyuk
Mikhail Gorchanyuk - avatar
+ 6
Yes
30th Jul 2019, 9:33 AM
Mikhail Gorchanyuk
Mikhail Gorchanyuk - avatar
0
Does it give the serial number to the elements? Is that what you wanna say?
30th Jul 2019, 9:32 AM
SUNDARAMAN IYER
SUNDARAMAN IYER - avatar
0
Thanks for helping
30th Jul 2019, 9:38 AM
SUNDARAMAN IYER
SUNDARAMAN IYER - avatar