# File: kennel.py # Author: Dr. Gibson # Date: 11/10/2017 # 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 index in range(len(dogs)): print("There is a", dogs[index], "in pen", index) # ASSISTANT #3: update the list to contain only German Shepherds print("\nASSISTANT #3: update the list to contain only German Shepherds") for d in range(len(dogs)): print("There WAS a", dogs[d], "in pen", d) dogs[d] = "German Shepherd" print("There is a", dogs[d], "in pen", d) main()