Curso_Intensivo_de_PYTHON/chapter_08/pets.py
2023-06-02 17:22:53 +02:00

6 lines
No EOL
227 B
Python

def describe_pet(pet_name, animal_type='dog'):
"""Display information about a pet."""
print(f"\nI have a {animal_type}.")
print(f"My {animal_type}'s name is {pet_name.title()}.")
describe_pet(pet_name='willie')