Skip to main content

Extras

f-string​

user = "ajay"

print(f"{user=}") # output: user='ajay'

# no need of print(f"{user=user}")

The '=' character prints both the expression and its evaluated value