Is there a shorter way to assign one of two variables in Python?
12 chars/assignment + 9 chars of overhead

V=vars()     # do once at the start of the program
V["xy"[b]]=z


Note that this only works at global scope, it does not work inside a function.