I have the following python list in
[0,1,2,'def','ghi']
Now I want to convert above into another list of tuples by discarding first list item so for e.g. I want [(1,0),(2,1),('def',2),('ghi',3)]
I have the following code
point = [0,1,2,'def','ghi']
spliltm0 = split[1:]
ls = ()
int i = 0
for a in spliltm0:
ls = (a,i++)
The above seems to be long code for Python, is there any shorter version of above code? I am super new to Python.