type — Easy Playground
Declares a type alias (3.12+)
Python Playground
Output
Click "Run" to execute your code'type' is both a soft keyword (Python 3.12+) for type aliases and a builtin function for checking types. As a keyword, it creates cleaner type alias syntax.
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?