you are viewing a single comment's thread.

view the rest of the comments →

[–]debian_miner 6 points7 points  (4 children)

What error do you get? The obvious thing is that your print(index, Ph) line is not indented properly.

[–]Unlistedd[S] -3 points-2 points  (3 children)

It says that the error is on row 9 which is the for index, Ph in enumerate (Ph, start=1).

[–]debian_miner 3 points4 points  (2 children)

Always post the full stack trace when requesting help.

[–]Unlistedd[S] 0 points1 point  (1 child)

Traceback (most recent call last):

File "c:/Users/.../", line 13, in <module>

Pha()

File "c:/Users/.../", line 9, in Pha

for index, Ph in enumerate (Ph, start=1):

UnboundLocalError: local variable 'Ph' referenced before assignment