Skip to content

ManibalaSinha/Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Snake Game to Eat Food https://youtu.be/YlYW3tDxdSU To improve the python documentation for your Python GitHub repo, you should:

This is critical β€” it’s the first thing recruiters and hiring managers see.

Here's a strong template you can start using:


🐍 README.md Example:

# Python Concepts & Interview Practice

This repository contains essential Python concepts, interview-level coding challenges, and real-world examples. Ideal for brushing up Python fundamentals or preparing for coding interviews.

## πŸ“š Table of Contents

- [Key Concepts](#key-concepts)
- [Practice Questions](#practice-questions)
- [Installation](#installation)
- [How to Run](#how-to-run)
- [Resources](#resources)
- [Contributing](#contributing)

---

## πŸ”‘ Key Concepts

The repo covers:

- Python Basics (`variables`, `functions`, `if-else`, etc.)
- Data Structures (`lists`, `dicts`, `tuples`, `sets`)
- Object-Oriented Programming
- Decorators, Generators, Iterators
- File Handling
- Pythonic Idioms
- Error Handling and Exceptions
- Web APIs and Requests
- Interview Questions with Explanations

---

## 🧠 Practice Questions

Some interesting problems solved:

- βœ… [Top K Frequent Elements](./interview/top_k_frequent.py)
- βœ… [LRU Cache (OrderedDict)](./interview/lru_cache.py)
- βœ… [Sliding Window Technique](./interview/sliding_window.py)
- βœ… [Shallow vs Deep Copy](./concepts/shallow_deep_copy.py)
- βœ… [*args and **kwargs Explained](./concepts/args_kwargs.py)

---

## πŸ’» Installation

```bash
git clone https://github.com/ManibalaSinha/Python.git
cd Python
python -m venv venv
source venv/bin/activate  # For Linux/macOS
venv\Scripts\activate     # For Windows
pip install -r requirements.txt

▢️ How to Run

python concepts/oop_basics.py

Or open any .ipynb file in Jupyter Notebook or VS Code.


πŸ“Œ Resources


🀝 Contributing

Pull requests are welcome. If you find any bugs or want to add examples, feel free to open an issue or PR.


πŸ‘€ Author

Manibala Sinha πŸ”— LinkedIn πŸŽ₯ YouTube


---

## βœ… 2. **Organize Your Repo Structure**

Separate files into folders:

/concepts β†’ for OOP, decorators, shallow/deep copy /interview β†’ for coding questions /apis β†’ for API-consuming scripts /README.md


---

## βœ… 3. **Add Comments + Docstrings**

Inside each `.py` file, include:

```python
"""
File: top_k_frequent.py
Purpose: Find the K most frequent elements in a list using Counter and heapq.
"""

def topKFrequent(nums, k):
    """Return the k most frequent elements."""
    ...

βœ… 4. Add a License (MIT or Apache)

So others can legally use or contribute to your work:

touch LICENSE

Add MIT License

About

Lambda Expression, Lists, Stacks, Queue, Dictionary

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages