How to print out a numbered list in Python 3 -


how print out index location of each of python list starts @ 1, rather 0. here's idea of want like:

    blob = ["a", "b", "c", "d", "e", "f"]     in blob:         print(???) 

output:

1   2   b 3   c 4   d 5   e 

what need know how numbers show alongside i'm trying print out? can a-e printed out no problem, can't figure out how number list.

for a, b in enumerate(blob, 1):     print '{} {}'.format(a, b) 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -