Did You Know — Adding = After an Expression in a Python f-string | by Liu Zuo Lin
# eg. f’{x=}’ returns ‘x=’ n = 5 print(f'{n+1=}') # n+1=6
n = 5 print(f'{n+10=}') # n+10=15
Did You Know — Adding = After an Expression in a Python f-string | by Liu Zuo Lin
# eg. f’{x=}’ returns ‘x=’ n = 5 print(f'{n+1=}') # n+1=6
n = 5 print(f'{n+10=}') # n+10=15