Debug Your Python Code with an Equal Sign in an f-String

It is common to use f"var={var}" to see which values are being printed. In Python 3.8 and above, you can get the same outputs using f"{var=}".

My previous tips on Python string.

Scroll to Top