Python Bug Fixing & Debugging Projects

This repository showcases practical Python debugging and bug-fixing skills through a series of structured projects.
It is designed to demonstrate the ability to identify, analyze, and correct broken code in real-world scenarios, making it ideal for clients, recruiters, or anyone seeking Python development expertise.


🧰 Skills Demonstrated

  • Debugging syntax and logical errors
  • Fixing runtime exceptions and errors
  • Exception handling with try/except
  • Algorithm debugging (loops, recursion, sorting/searching)
  • Writing clean, readable, and maintainable Python code
  • Problem-solving and analytical thinking

📂 Projects Overview

01. Syntax Errors

Fixes missing colons, parentheses, and indentation issues.
Skills: Python syntax, debugging, attention to detail

02. Logic Errors

Corrects code that runs but produces incorrect outputs.
Skills: Loop and condition debugging, arithmetic corrections, logic analysis

03. Runtime Errors

Handles exceptions that cause programs to crash.
Skills: ZeroDivisionError, KeyError, TypeError, IndexError

04. Exception Handling

Adds robust error handling to make code fail-safe.
Skills: try/except, safe file operations, input validation

05. Algorithm Debugging

Fixes broken algorithms like recursion, factorial, Fibonacci, and sorting logic.
Skills: Loops, recursion, sorting/searching logic, algorithmic thinking


📌 How to Use

  1. Clone the repository:
    git clone https://github.com/anshkunj/Bug-fixing-projects.git
  2. Navigate to any project folder.
  3. Read README.md and PROBLEM.md for context.
  4. Run broken_code.py to see the issues, then fixed_code.py to see the corrected version.

🎯 Purpose of This Repository

  • Showcase real debugging and problem-solving skills in Python
  • Demonstrate ability to fix broken code in multiple scenarios
  • Serve as a portfolio for Fiverr clients or recruiters looking for Python developers

⚡ Recommended Portfolio Usage

  • Include screenshots of errors vs fixed outputs for Fiverr portfolio
  • Highlight 2–3 strongest projects when promoting to clients:
    • Algorithm Debugging
    • Runtime Errors
    • Exception Handling

🛠️ Tech Stack

  • Python 3.x
  • Standard Python libraries
  • No external dependencies (pure Python code)

📄 Licence

MIT Licence


🤝 Contributing

Contributors are welcome!
• Add new problems and algorithms
• Improve explanations
• Optimise exists code


anshkunj

📫 Connect with me

GitHub LinkedIn Portfolio Discord

🧠 Competitive Programming & Hackathons

LeetCode Codeforces AtCoder HackerRank Devpost

💼 Freelance Profiles

Fiverr Freelancer


⭐ Support

If you found this project helpful, consider giving it a ⭐
It motivates me to build more real-world, production-ready projects 🚀


📝 Note

This repository is regularly updated with new scripts and improvements.

Built With

  • bug-fixing
  • code-improvement
  • debugging
  • problem-solving
  • python
  • script-optimisation
  • troubleshooting
Share this project:

Updates