Coding-with-Adam/Dash-by-Plotly

String formatting question

hughjward opened this issue · 1 comments

Hi,

Is there a specific reason you use % string formatting here, whereas in line 70 you use f-string?

title=indicator + " from %.0f to %.0f" % (years[0], years[1]),

dff, x="lifeExp", nbins=10, title=f"Life Expectancy {years[1]}")