I have several lists that I need to convert to sets. I wrote a function to do this, but when I try to dynamically create the sets variable it is not working. What would the correct syntax for this?
"s_" + listName = set(listName)
Error:
"s_" + listName = set(listName)
^
SyntaxError: cannot assign to operator