demo_function_param3.py:
def my_function(food): for x in food: print(x) fruits = ["apple", "banana", "cherry"] my_function(fruits)
➜ begtut>python demo_function_param3.py
apple
banana
cherry