It looks like this comment contains a code block delimited with triple backticks. Unfortunately reddit does not have universal support for this syntax and your comment will not render correctly on old reddit and most mobile apps.
For the benefit of people on old reddit, this link will take you to a correct rendering of the comment.
/u/RoboticPlayer, it would be appreciated, but not required, if you could edit your comment to use the more compatible four space indention format. For single lines or inline code you can use single backticks.
Maybe just one function taking a string? You can then create necessary functions with something like. You might then also create a list of functions from a list of possible tags.
chosetagDrama = lambda: chosetag('Drama')
Possibly move the selectedtags into a function parameter, too, to not rely on global variables.
No, each function removes the element if it exists in the list, a set would just do nothing (keep it in the set). This is probably to toggle the selection of tags.
-51
u/NetherFX Apr 24 '21
Still pretty readable, and I can't quickly think of an improvement