python3
def debug(w):
print(f'word:{w}')
return w
list_debug = ["apple", "lemon", None, "cat", "inu"]
list_debug = [debug(s) for s in list_debug]
print(list_debug)
out
word:apple
word:lemon
word:None
word:cat
word:inu
['apple', 'lemon', None, 'cat', 'inu']