New to Python. I need to insert an item for a list in a for loop structure this way:
- Item-1: List-Item-1
- Item-2: List-Item-2
- Item-n: List-Item-n
Here is my code:
mylist = ["uno", "dos", "tres", "cuatro"]
length = len(mylist)
print length
length += 1
print length
for i in range(1, length):
print " item %d:" % i
I just can figure it out. I'm able to print the list item or the item number separated but I can't get them together
Any Help would be much appreciated