I want to make a code that does something only if the tag of an object matches the characters of interest. What I did was write this:
if str(canvas.gettags(ob