Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Tags
#python
Question
What does the enumerate function do?
Answer

provides the index to the list, followed by the value.

example:

somelist = ['a','b','c']
for position, name in enumerate(somelist):
print position, name

will give:

0 a
1 b
2 c


Tags
#python
Question
What does the enumerate function do?
Answer
?

Tags
#python
Question
What does the enumerate function do?
Answer

provides the index to the list, followed by the value.

example:

somelist = ['a','b','c']
for position, name in enumerate(somelist):
print position, name

will give:

0 a
1 b
2 c


Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.