pydanticEasy Playground

Data validation using Python type annotations; settings management

Getting started with pydanticRun locally
Install
pip install pydantic
Python CodeRun locally
Expected Output
# Expected output shown below
# (Run locally with: pydantic)

pydantic is a third-party package. Data validation using Python type annotations; settings management. Install with: pip install pydantic

Challenge

Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?