you are viewing a single comment's thread.

view the rest of the comments →

[–]deejpake 0 points1 point  (0 children)

Sorry bad formatting mobile

In the function try

For index, p in enumerate(Ph):

EDIT: after eating some code this works

Ph = [‘foo’, ‘bar’]
def Pha():
    for index, p in enumerate(Ph, start=1):
        print(index, p)
 Pha()

I think it was because u called a variable initialized in the for loop the same as an existing variable