replace values in list using python,new_items = [(x if x % 2 else None) for x in items]