Coding task · Python course · Module 3: Object-Oriented Programming

Type Hints in a Class

Add type hints to the class

Task

Create an Animal class with type hints: name: str, age: int, weight: float