I am new to python 3 so could someone help me fix this? I have been working on python 2.7 for a year now, and i dont know what's wrong with my code. please help me!!!
In your function
insta, you are trying to use the variable
task ahead of your global definition of
task. If you add one line at the beginning of the function that says
global task instead of in the middle of the function, it should work.