I am just wondering if there is a way to assign a value/alternate value when it is None
as below
conventional way
result = a if a else b
Expected way
result = assign(a,b)
PS: I could create a custom function but I would like to know if there is something by default already