How to fix SyntaxError: cannot assign to literal in Python | DevErrors