Contact: aviboots(AT)netvision.net.il
39,890 questions
51,819 answers
573 users
lst = ['python', 'c', 'c++', 'c#', 'java'] list_of_tuples = list(enumerate(lst)) print(list_of_tuples) ''' run: [(0, 'python'), (1, 'c'), (2, 'c++'), (3, 'c#'), (4, 'java')] '''