# Functions example # Convert from human years to dog years def dog_years(human_years): return human_years * 7 # Print some information about a dog def dog_stats(): print("Fido is the name of the dog") print("He is a good dog") # Compute the amount of interest earned def interest_calculator(money, rate_percent): rate = rate_percent * .01 return money * rate # Print out basic dog stats plus additional information def advanced_dog_stats(years): dog_stats() print("He is " + str(dog_years(years)) + " years old")