What does an ‘x = y or z’ assignment do in Python?

Why do we see Python assignments with or? For example: def my_function(arg_1=None, arg_2=0): determination = arg_1 or arg_2 or 'no arguments given!' print(determination) return determination When called with no arguments, the above function would print and return ‘no arguments given!’ Why does Python do this, and how can one best make best use of this … Read more