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 metho
from
to
rate
Add a single underscore to your preferred names: from_ and to_
(see PEP 8)
class ExchangeRates(JsonAware): def __init__(self, from_, to_, rate): self.from = from_ self.to = to_ self.rate = rate