def main(): varmint_village = PettingZoo("Varmint Village", "cute and fuzzy critters to cuddle") slither_inn = SnakePit('Slither Inn', "stupendous snakes of all sizes") bubbling_brook = Wetlands('Bubbling Brook', "feathery and wet critters") dolly = Llama("Dolly", "miniature llama", "morning", "hay", 1033) snappy = RattleSnake("Snappy", "American RattleSnake", "frogs", 1044) donald = Duck("Donald", "Animated Duck", "Duck Food", 123) varmint_village.add_animal_pythonic(dolly) varmint_village.add_animal_pythonic(snappy) slither_inn.add_animal_pythonic(dolly) slither_inn.add_animal_pythonic(snappy) bubbling_brook.add_animal_pythonic(donald) bubbling_brook.add_animal_pythonic(snappy)
water_town.add_animal(jerry) # print(miss_fuzz) # print(tony) # print(ned) # print(henry) # print(george) # print(flipper) # print(buddha) # print(ed) # print(gus) # print(jerry) # print(carl) # print(ren) # print(sally) # print(charlie) # print(al) # print(slither_inn) # print(varmint_village) # print(water_town) # print(slither_inn.last_critter_added) # print(varmint_village.last_critter_added) # print(water_town.last_critter_added) varmint_village.add_animal_pythonic(flipper) varmint_village.add_animal_pythonic(ned) slither_inn.add_animal_pythonic(tony) slither_inn.add_animal_pythonic(carl) water_town.add_animal_pythonic(ren) water_town.add_animal_pythonic(flipper)
f'You can find {animal.name} the {animal.species} in {slither_inn.attraction_name}' ) for animal in critter_cove.animals: print( f'You can find {animal.name} the {animal.species} in {critter_cove.attraction_name}' ) print(varmint_village.last_critter_added) print(slither_inn.last_critter_added) print(critter_cove.last_critter_added) print(tim.run()) print(tim.swim()) print(moriah.run()) # remember, some animals may require more arguments than others; e.g. shift dolly = Llama("Dolly", "miniature llama", "morning", "hay", 1033) snappy = Turtle("Snappy", "American Alligator", "midday", "fish", 1044) varmint_village.add_animal_pythonic(dolly) varmint_village.add_animal_type_check(dolly) varmint_village.add_animal_pythonic(snappy) for animal in varmint_village.animals: print(animal) critter_cove.add_animal_pythonic(bugs) slither_inn.add_animal_pythonic(chuck)