I’m trying to extend an existing list with another list that comes from JSON and either it’s a list of 1 or more items, or it’s Null. Is there a way to extend the existing list with the value, while not extending when it’s None?
A = ["a","b","c"]
json_list = ["d", "e"]
A.extend(json_list)
This works when json_list is not None, but when the json_list value is None it gives me an error.
6