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=}".
f"var={var}"
f"{var=}"
My previous tips on Python string.
Simplify Nested Structures with Python Data Classes
Simplify Object Creation with Python Class Methods
Optimizing Memory Usage in Python with Slots
Your email address will not be published. Required fields are marked *
Name
Email
Website
Save my name, email, and website in this browser for the next time I comment.
Δ