3 ms·
There’s a nice syntactic sugar for debugging with f-strings: if you place an equal sign, it will print both the variable name and the value. For example: >
by rodorgas 6y ago
There’s a nice syntactic sugar for debugging with f-strings: if you place an equal sign, it will print both the variable name and the value. For example:
>>> f"{name=}"
'name=Rodrigo'