Get the latest tech news
Python f-string cheat sheets (2022)
Get quick help with Python's f-string syntax
Type f with precision.n displays n digits after the decimal point. Type g with precision.n displays n significant digits in scientific notation. The below modifiers are special syntaxes supported by all object types.
Or read this on Hacker News