# ten = 10.0025 print(f'{round(10, 2)}') you need the f outside the fstring, and inside the {} inside an f-string, the code must be valid