i'm fairly new to Python (using 2.7) and have run into an issue with assigning to variables.
I'm trying to assign a number to a variable and then use that variable to create a new variable and assign a list (or a value) to it. For example:
x = 15
"MA"+str(x) = [12,54]
print MA15
The print MA15 should return the list [12,54]. The error I get is 'SyntaxError: can't assign to operator'.
I've tried other methods such as {"%s%s" % ("MA", str(Days))}, {exec()}, and {setattr()} functions.