Zadanie z kodem · Kurs Python · Moduł 6: Async i FastAPI

Model Pydantic

Zdefiniuj model Pydantic dla danych gatunku.

Zadanie

Stwórz model Species z polami name (str) i habitat (str).