Skip to content Skip to sidebar Skip to footer

Unresolved Reference With Global Variables In Python 3

So, I'm not sure why, but I'm getting an 'Unresolved Reference' warning from Pycharm in the following functions. The one thing they have in common is that assignment variable is al

Solution 1:

You're trying to set a global so you need to be explicit about it.

def OP9():
    global s3
    s3 = np.tan(s3) # s3 in the tan() function is the culpritreturn s3

Reference

Post a Comment for "Unresolved Reference With Global Variables In Python 3"