Zheaoli / Python-Type-Challenges

Learn Python typing (type hints) by completing online challenges!

Home Page:https://python-type-challenges.zeabur.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Type Challenges

Learn Python 🐍 typing (type hints) by completing online challenges.

🌟🌟 Click HERE to start 🌟🌟

Happy typing!

How to Run Locally

This project use PDM, a modern Python package and dependency manager, to manage dependencies. After you have installed PDM, you can run this project locally based on the following steps:

pdm plugin add pdm-autoexport
pdm install
pdm run devserver

Optionally, the requirements.txt file is also provided for you if PDM doesn't exist in your environment.

You can use traditional pip to install dependencies and run the project manually:

pip install -r requirements.txt
flask --app app run --debug

How to Contribute

You're more than welcome to contribute new challenges!

All challenges live under the challenges/ directory, and it's pretty easy to add a new one: you only need to create a new folder, add a question.py and a solution.py, and that's it. See here for a detailed guidance.

Got Questions?

For general questions, you can post them in Discussions.

If you met issues or want to suggest a new feature/improvement, feel free to open a new issue.

Credits

This project is inspired Type Exercise in Rust by @skyzh, and type-challenges by @antfu.

About

Learn Python typing (type hints) by completing online challenges!

https://python-type-challenges.zeabur.app

License:MIT License


Languages

Language:Python 57.7%Language:HTML 42.3%