Skip to content

Latest commit

Β 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐍 HCO PythonTutor

AI-Powered Python Learning Companion for Termux & Linux

Code by Azhar (A-Z-H-A-R) β€’ HCO Team

β€œThe quieter you become, the more you are able to hear.”

HCO PythonTutor is an interactive terminal-based learning tool designed to help you learn Python from Beginner β†’ Advanced with lessons, hands-on practice, real local Python execution, coding challenges, progress tracking, and an optional AI tutor.

πŸš€ Learning Philosophy

This is not only a text reader or chatbot.

Learn β†’ Write β†’ Run β†’ Check β†’ Fix β†’ Challenge β†’ Progress

You can write and execute Python directly inside the terminal.

✨ Features

  • 🐍 30-step Beginner β†’ Advanced roadmap
  • πŸ“š Step-by-step lessons
  • πŸ• Daily 10-minute learning mode
  • πŸ§ͺ Practice Lab inside Termux/Linux
  • ▢️ Run your own Python code locally
  • 🎯 Coding challenges
  • πŸ€– AI Python Tutor via OpenRouter
  • πŸ“Š Local progress tracking
  • 🎨 Colorful terminal interface
  • πŸ“± Termux + Linux support
  • πŸ” Bring your own OpenRouter API key

πŸ“± Termux Installation

1. Install Git

pkg update -y
pkg install -y git

2. Clone the repository

git clone https://github.com/Hackerscolonyofficial/HCO-Python-Tutor.git

3. Enter the folder

cd HCO-PythonTutor

4. Install and launch

bash install.sh

The installer installs Python and the required dependency, then launches HCO PythonTutor automatically.

🐧 Linux Installation

1. Install Git

Ubuntu/Debian:

sudo apt update
sudo apt install -y git

2. Clone

git clone https://github.com/Hackerscolonyofficial/HCO-Python-Tutor.git

3. Enter the folder

cd HCO-PythonTutor

4. Install and launch

bash install.sh

The installer can automatically install Python 3 and pip on Debian/Ubuntu-style systems.

For other Linux distributions, install Python 3 and pip with your distribution's package manager, then run:

bash install.sh

πŸ€– OpenRouter API Key

HCO PythonTutor uses your own OpenRouter API key for the AI Tutor.

The key is entered locally using a hidden password prompt and is not included in the GitHub source.

The practical learning and local Python execution features do not depend on the AI API. The key is required for Ask AI Tutor.

Security

  • Never publish your API key.
  • Never commit a real key to GitHub.
  • If a key is exposed, revoke/rotate it with your provider.
  • .gitignore is included to help avoid accidental secret commits.

🧠 Curriculum

Beginner

  1. Python & print()
  2. Variables
  3. Data Types
  4. Input
  5. Operators
  6. Conditions
  7. for Loops
  8. while Loops
  9. Lists
  10. Tuples & Sets
  11. Dictionaries
  12. Functions

Intermediate

  1. Function Arguments & Scope
  2. Modules
  3. File Handling
  4. Exceptions
  5. Comprehensions
  6. OOP Basics
  7. Inheritance
  8. Virtual Environments
  9. JSON & APIs
  10. Testing

Advanced

  1. Debugging
  2. Automation
  3. SQLite
  4. Async Basics
  5. Advanced Python
  6. Security-Focused Python
  7. Project Challenge
  8. Final Project

πŸ§ͺ Practical Learning

Example:

🐍 LESSON 02 β€” Variables

🎯 PRACTICE TASK
Create a variable called city and print it.

>>> city = "Jaipur"
>>> print(city)
>>> END

β–Ά Output:
Jaipur

βœ… Code executed successfully!

The code is executed locally using the Python interpreter on the user's machine.

πŸ• Daily 10-Minute Mode

Choose:

[2] πŸ• Daily 10-Minute Learning

Each session focuses on the current lesson:

Learn β†’ Example β†’ Practice β†’ Run β†’ Progress

The goal is consistent daily learning instead of trying to consume the whole course at once.

🎯 Coding Challenges

The challenge mode asks you to solve a task yourself.

The goal is:

Don't just read Python. Write Python.

πŸ€– AI Tutor

Ask the AI Tutor about:

  • Python concepts
  • Syntax
  • Errors
  • Debugging
  • Projects
  • Learning strategy
  • Code explanations

The AI tutor is instructed to teach with hints and explanations rather than simply dumping solutions.

πŸ“Š Progress

Progress is saved locally at:

~/.hco_pythontutor/progress.json

The tool tracks:

  • Completed lessons
  • Current lesson
  • Coding challenges
  • Daily sessions

No external progress database is required.

πŸ“ Project Structure

HCO-PythonTutor/
β”œβ”€β”€ HCO-PythonTutor.py
β”œβ”€β”€ install.sh
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ .env.example
β”œβ”€β”€ .gitignore
β”œβ”€β”€ LICENSE
└── README.md

πŸ“Ί Hackers Colony Tech

YouTube:

https://youtube.com/@hackers_colony_tech

Community:

https://hcogroup.netlify.app/

πŸ›‘οΈ Disclaimer

HCO PythonTutor is provided for informational and educational purposes.

Cybersecurity-related learning should only be performed on systems, devices, networks, and accounts that you own or have explicit permission to test.

Hackers Colony Tech does not support unauthorized access, data theft, malware distribution, or attacks against systems without permission.

You are responsible for how you use the information, code, and tools provided by this project.

πŸ“œ License

HCO PythonTutor is released under the HCO PythonTutor Proprietary License.

Personal educational use is permitted. Redistribution, republishing as your own project, commercial redistribution, and removal of attribution are not permitted without written permission.

See LICENSE for the complete terms.

πŸ‘¨β€πŸ’» Creator

Code by Azhar (A-Z-H-A-R) β€’ HCO Team

Hackers Colony Tech ⚑

Learn β€’ Build β€’ Explore β€’ Stay Ethical

⭐ Support HCO

If HCO PythonTutor helps you learn Python:

πŸ‘ Star the repository
πŸ“Ί Subscribe to Hackers Colony Tech
πŸ”” Turn on notifications
πŸ’¬ Share your feedback

Keep learning. Keep building. 🐍πŸ”₯

About

🐍 HCO PythonTutor β€” A practical Python learning tool for Termux & Linux. Learn Python step by step, practice coding, solve challenges, track progress, and use an AI tutor to understand concepts and build your own tools.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages