Python Refresher

Python in a Weekend - Parameters

Create a function that takes a list and prints all the items in the list

Solution

                    def print_list(list):
  for item in list:
    print(item)

print_list(['Pizza','Buffalo Wings','Shepherd\'s Pie','Oreos'])
                

Here's some courses you might like: