Q:

Printing a list in Python L1 = [i for i in range(ord('A'), ord('K'))] print(L1)

I am trying to print the ASCII codes of the alphabets from A to K in Python.I did this using the following code .
L1 = [i for i in range(ord('A'), ord('K'))]
print(L1)

I got this as the output
[65, 66, 67, 68, 69, 70, 71, 72, 73, 74]

Now i want it to be printed using the index values 
    print ("List index-value are : ") 
for i in range(len(L1)): 
    print (i, end = " ") 
    print (L1[i]) 

the output is 
List index-value are : 
0 65
1 66
2 67
3 68
4 69
5 70
6 71
7 72
8 73
9 74

The desired output i want is 

Blockquote

A 65
B 66
C 67
D 68
E 69
F 70
G 71
H 72
I   73
J 74  

A:

As L1 is a list of enumerated chars from A to K, you can easily do the same the other way.
L1 = [i for i in range(ord('A'), ord('K'))]
print("List index-value are : ")
for i in range(len(L1)):
    print('{} {}'.format(chr(L1[i]), L1[i]))

