How can I reassign global variable inside of the function in PyCHarm?

Viewed 30

I have global variable track and I want to reassign the value of track inside the function, but it is not working?I am getting still empty string.

track = ""

def wsReceive():
    track = "abc"

0 Answers
Related