How do I use a keyword as a variable name?
I have the following class with the variables from , to and rate . from is a keyword. If I want to use it in the init method below, what's the correct way to write it? More context: The class needs the from variable explicitly as it's part of a json required by a POST endpoint written up by another developer in a different language. So changing the variable name is out of the question. class ExchangeRates(JsonAware): def __init__(self, from, to, rate): self.from = from self.to = to self.rate = rate JsonAware code: class PropertyEquality(object): def __eq__(self, other): return (isinstance