data = [] if data is None else list(data)
data = list(data) if data else []
Someone asked if these two are same or not, and which one I preferred. I told him they are same, but he didn't seem to be satisfied by the answer. So, are they different or same, and which one do you prefer?