I love the walrus operator:
if (x := some_function()):
do_something(x)
else:
# x is None or False or something, consider it invalid
The only thing I wish was different is adding a scope, which would make x invalid outside the block. But Python's scoping rules are too dumb to handle this case.