3 ms·> It works with any expression you like Also assignment expressions? :)by amelius 6y ago> It works with any expression you like Also assignment expressions? :)OJFord 6y ago>>> print(f"{(yes:='yes')=}") (yes:='yes')='yes'mkl 6y agoYep. >>> print(f"{(yes:='yes') = } and now {yes = }") (yes:='yes') = 'yes' and now yes = 'yes'wadkar 6y agoI believe the walrus operator `:=` was introduced in Python 3.8. So keep that it in mind.L3viathan 6y agoAs was this feature.wadkar 6y agoIndeed but the operator is useful beyond fprint