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
  • 6,572
  • 12
  • 40
  • 56

0 Answers0