Skip to content

Interactive Python Learning Platform

Overview

An all-in-one learning hub that delivers progressive Python lessons through both a guided CLI and a hostable Flask web interface. Lessons combine narrative walkthroughs, executable code examples, mini quizzes, and follow-up practice ideas geared toward aspiring quantitative developers.

Quickstart (CLI)

python "UTILS - Learning Platform/learning_platform_cli.py"
Features of the CLI experience: - Step-by-step sections with narration and code snippets - Inline quizzes with instant explanations - Practice prompts and follow-up resources at the end of each lesson

Host the Web Experience

pip install -r requirements.txt
python "UTILS - Learning Platform/learning_platform_web.py"
Then visit http://127.0.0.1:5000/ in your browser. The web UI mirrors the CLI lessons with collapsible sections and quiz answers surfaced for self-paced study. You can deploy the Flask app on any platform that supports WSGI (Heroku, Railway, Fly.io, Render, etc.).

Deployment Tips

  • Set FLASK_APP="UTILS - Learning Platform/learning_platform_web.py"
  • Use flask run --host=0.0.0.0 --port=$PORT on hosting providers
  • Pin dependencies using the root requirements.txt

Lesson Library

Lessons live in content.py and can be extended by adding new Lesson entries. Each lesson includes: - Title, difficulty, and estimated completion time - Objectives, section-by-section prose, and example code - Optional quizzes (QuizQuestion) with explanations - Practice prompts and follow-up resources

  • main.py launcher option 5 runs the CLI directly
  • Beginner utilities in UTILS - Python Basics - Strings/ and ...Numbers/
  • Advanced finance walkthroughs in Documentation/Programs/level3_financial.py and level4_advanced.py

Happy teaching and learning!