human
Python program to instantiate an object for each item in a list in a for loop.
assistant
Here is a Python program to instantiate an object for each item in a list in a for loop

import collections

def _for_each_item(iterable, func):
    """
    Iterate over each item in the iterable and call the function func(item).
    """
    for item in iterable:
        func(item)

# Enter the list
list1 = [1, 2, 3]

# Calling the function
print((_for_each_item(list1, lambda x: x + 1)))

# Example Output

#Example Output
# None

#Remember to inspect code for bugs.