f-strings were introduced in Python version 3.6; to use them, please use a more recent version of Python.