Signup/Sign In

Answers

All questions must be answered. Here are the Answers given by this user in the Forum.

You can try the **enumerate** function to get the index. Here's an example
***
ints = [8, 23, 45, 12, 78]
for i, number in enumerate(ints, start=1):
print('item #{} = {}'.format(i, number))
***
4 years ago