Put in order · Python course · Module 6: Async and FastAPI

Pydantic model

Arrange the Pydantic model definition for a Safari species:

Items to put in order

  • population: int
  • endangered: bool = False
  • class Species(BaseModel):
  • name: str
  • from pydantic import BaseModel

You can check the correct answer by solving this task in the CodeWorlds game.