An interactive command-line tool to help you work through the excellent python-for-csharp-devs course systematically.
This course contains 25 lessons (10 minutes each) designed to help C# developers quickly become proficient in Python. Each lesson:
- Focuses on key differences between Python and C#
- Provides examples and code snippets
- Includes practice projects and additional resources
- Python 3.6 or higher installed on your system
- A text editor or IDE (VS Code, PyCharm, etc.)
- Install required dependencies:
pip3 install -r requirements.txtOr install the rich library directly:
pip3 install rich- Make the script executable (optional):
chmod +x python_learning_assistant.py- Run the assistant:
python3 python_learning_assistant.pyOr on Windows:
python python_learning_assistant.py- Interactive Markdown Viewer: Lesson content is fetched from GitHub and displayed directly in the terminal with beautiful formatting
- Progress Tracking: Your progress is automatically saved and synced
- Notes System: Add personal notes to each lesson
- Rich Terminal Output: Syntax-highlighted code blocks, formatted headers, and styled content
dashboard- View your learning progresslist- See all 25 lessons at a glancelesson <number>- View lesson with full content from GitHub (e.g.,lesson 5)current- View your current lesson with full contentnext- Move to the next lessoncomplete <number>- Mark a lesson as complete (e.g.,complete 3)note <number> <text>- Add notes to a lesson (e.g.,note 5 Remember to use list comprehensions)reset- Reset all progress (with confirmation)help- Show command helpquitorexit- Exit the assistant
-
Start with the dashboard to see your progress:
📚 > dashboard -
View your current lesson:
📚 > currentThis fetches the lesson content from GitHub and displays it beautifully formatted in your terminal!
-
Read through the lesson directly in your terminal with rich formatting, including:
- Formatted headers and sections
- Syntax-highlighted code blocks
- Bulleted and numbered lists
- Styled text and links
-
Mark it complete when done:
📚 > complete 1The assistant automatically advances you to the next lesson!
-
Add notes as you learn:
📚 > note 1 Python uses indentation instead of braces -
Jump to specific lessons if you want to review:
📚 > lesson 7
Your progress is automatically saved to ~/.python_learning_progress.json. This includes:
- Current lesson position
- Completed lessons
- Personal notes for each lesson
- Start date of your learning journey
- Installation and setup
- Basic syntax and Python's unique features
- Data types, control flow, and functions
- File I/O and list comprehensions
- Dictionaries, modules, and OOP basics
- Exception handling
- Lambda functions and generators
- Slicing and indexing
- Standard library and pip
- Pythonic code and common pitfalls
- Practice projects
- Multi-threading basics
- Thread pools and executors
- Synchronization and thread safety
- Async/await programming
- Combining threads and async
- Performance optimization
- Take your time - Even though each lesson is 10 minutes, spend extra time on practice projects
- Write code - Don't just read; type out examples and experiment
- Use your notes - The note feature helps you remember key takeaways
- Compare to C# - Think about how each Python feature relates to C# concepts you know
- Practice daily - Consistency is key to retention
- Official Python Documentation
- Python for C# Developers GitHub Repo
- Python PEP 8 Style Guide
- Real Python Tutorials
You can modify LESSONS list in the script to:
- Add your own lessons
- Include local markdown files
- Track additional courses
🐍 Welcome to Python Learning Assistant for C# Developers!
Based on: https://github.com/robch/python-for-csharp-devs
Type 'help' for available commands
============================================================
🐍 PYTHON LEARNING DASHBOARD (for C# Developers)
============================================================
Progress: 0/25 lessons (0.0%)
Current Lesson: 1
============================================================
📚 > current
============================================================
📚 Lesson 1: Python Installation and Setup
============================================================
Duration: 10 min
Status: ⏳ Not Started
Topics:
• Install Python on your machine
• Set up a Python development environment
• Learn how to run Python scripts and interact with the Python interpreter
🔗 Lesson URL:
https://github.com/robch/python-for-csharp-devs/blob/main/learn-python-in-half-day-lesson-1.md
============================================================
📚 > complete 1
✅ Lesson 1 marked as complete!
📚 Next up: Lesson 2 - Basic Syntax and Indentation
📚 > note 1 Python installed via python.org installer, using VS Code with Python extension
📝 Note added to Lesson 1
📚 > dashboard
============================================================
🐍 PYTHON LEARNING DASHBOARD (for C# Developers)
============================================================
Progress: 1/25 lessons (4.0%)
Current Lesson: 2
Completed: 1
============================================================
Feel free to enhance this tool! Some ideas:
- Add a web interface
- Integrate with local markdown viewer
- Add code snippet runners
- Track time spent on each lesson
This learning assistant is provided as-is for educational purposes. The course content belongs to the original repository author.
Happy Learning! 🐍✨