# File: kennel.py # Author: Dr. Gibson # Date: 3/30/2018 # Section: N/A # E-mail: k.gibson@umbc.edu # Description: # Do tasks in a kennel def main(): dogs = ["Alaskan Klee Kai", "Beagle", "Chow Chow", "Doberman", \ "English Bulldog"] # ASSISTANT #1: print out all the dogs print("ASSISTANT #1: print out all the dogs") for i in range(len(dogs)): print(dogs[i]) # ASSISTANT #2: print out all the dogs AND their location print("\nASSISTANT #2: print out all the dogs AND their location") for i in range(len(dogs)): print("There is a", dogs[i], "in pen", i) # ASSISTANT #3: update the list to contain only German Shepherds print("\nASSISTANT #3: update the list to contain only German Shepherds") for i in range(len(dogs)): # uncomment this line to see the changes as they happen # print("There WAS a", dogs[i], "in pen", i) dogs[i] = "German Shepherd" print(dogs[i]) main()