0 out of 464 challenges solved
Write a Python function `dog_age(human_years: int) -> float` that calculates a dog's age in dog years based on the following rules: - For the first two human years, each year counts as 10.5 dog years. - For each year after the first two, each year counts as 4 dog years. #### Example Usage ```python [main.nopy] print(dog_age(1)) # Output: 10.5 print(dog_age(3)) # Output: 25.0 print(dog_age(10)) # Output: 53.0 ``` #### Constraints - The input `human_years` will always be a non-negative integer.
def dog_age(human_years: int) -> float: """ Calculate a dog's age in dog years based on the given human years. Args: human_years (int): The age of the dog in human years. Returns: float: The age of the dog in dog years. """ # Implement the logic to calculate the dog's age in dog years pass