0

Let's say I have something like

year = 2017

How do I declare a new variable, like sales_2017 except the suffix is based on the variable year?

For example, something like sales_{year}.format(year=year) except that would be the syntax for a string, not a variable.

Vincent
  • 7,808
  • 13
  • 49
  • 63

0 Answers0