Learn Python by writing Python.
LearnPy Hub is a free place to learn Python, whether you have never written a line of code or you are ready for advanced topics and data science. There's nothing to install. Teachers can create classes and see exactly where each student is stuck.
Learn
32 lessons in three stages, from your first print() to decorators, async, NumPy, pandas and matplotlib. Each lesson opens with an animation of the idea, then gives you examples to run, a predict-the-output check and a short quiz, in English or বাংলা.
Topic Practice
10+ auto-graded problems for every topic. Run checks the sample cases; Submit checks hidden tests and tells you Accepted, Wrong Answer, Time Limit Exceeded or Runtime Error.
Compiler
An online Python editor with input support and light and dark themes, for trying out anything you like.
Arena
780 rated problems in three levels (Easy, Intermediate and Advanced) for when you want a challenge, with a leaderboard, badges and daily streaks.
Contest
Timed Python contests from the admin, and competitions, exams and practice sets from your teachers. Each one shows a live countdown to when it starts and ends, and the Contest page lists what's upcoming and what's completed. Join, solve against the clock and watch your rank on the leaderboard.
Sadman Sadik Khan
Lecturer (CSE) & AI/ML Researcher
Daffodil International University · Dhaka, Bangladesh
I teach Python and programming, and I built LearnPy Hub so my students could learn, practise and compete in one place, and so teachers can follow every student's progress without extra paperwork. If you find a bug, have an idea for a lesson or problem, or want to use LearnPy Hub with your class, I'd love to hear from you.
Contact
Send a message
Write to the developer directly. You don't need an account. Your phone number is optional.