Write a function to accept a simple iterable and print the elements
Topic: Write a function to accept a simple iterable and print the elements
Solution
def print_iter(iter): for item in iter: print(item)
List all Python Programs
Solution
def print_iter(iter): for item in iter: print(item)