Promblem Programming

Help pls
UnboundLocalError: cannot access local variable ‘markup’ where it is not associated with a value

Please see the pinned post about posting code properly.

The error here is saying you’re missing a definition for markup. At least it isn’t defined in your screenshot.

1 Like

Yes, but I still don’t understand exactly what the markup value is missing here.

It’s missing a value. Is it set anywhere in the code?

Something like:

markup=''"

I don’t really know what it’s supposed to be in the library you’re using.

markup is defined on line 13, you access it on line 12.