Edit: someone downvoted me because they don't understand there is no walrus operator here
print(f"{a:=10}")
>>> print(f"{(a:=10)}")
Edit: someone downvoted me because they don't understand there is no walrus operator here