assignment-1

🐍 Python Concepts Explorer

Welcome to our awesome Python learning journey! This project is all about exploring some of the coolest and most powerful features in Python. Let’s dive in! πŸš€

🎯 What’s Inside?

1. 🎩 Magic Methods (Dunder Methods)

Ever wondered how Python objects know what to do when you add them together or try to print them? That’s where dunder methods come in! We’ve got examples of:

2. 🎨 Decorators

Want to add superpowers to your functions without changing their code? Decorators are here to help! We explore:

3. πŸ“¦ Modules and Packages

Learn how to organize your Python code like a pro! We cover:

4. πŸ“ˆ Interactive Stock Portfolio Tracker

A Streamlit web app that demonstrates our Python concepts in action:

πŸš€ Getting Started

  1. Clone this repository
  2. Create a virtual environment:
    python -m venv myvenv
    source myvenv/bin/activate  # On Windows: myvenv\Scripts\activate
    
  3. Install requirements:
    pip install -r requirements.txt
    
  4. Run the Streamlit app:
    streamlit run main.py
    

πŸ“ Project Structure

assignment-1/
β”‚
β”œβ”€β”€ src/                          # Source code directory
β”‚   β”œβ”€β”€ __init__.py              # Makes src a package
β”‚   β”œβ”€β”€ dunder-magic-methods.py  # Magic methods examples
β”‚   β”œβ”€β”€ decorators.py            # Decorator patterns and examples
β”‚   β”œβ”€β”€ string-formatters.py     # String formatting techniques
β”‚   β”œβ”€β”€ list-comprehension.py    # List comprehension examples
β”‚   β”œβ”€β”€ keyword-args.py          # Keyword arguments usage
β”‚   └── positional-args.py       # Positional arguments examples
β”‚
β”œβ”€β”€ __init__.py                 # Root package initialization
β”œβ”€β”€ main.py                     # Streamlit app entry point
└── requirements.txt            # Project dependencies

🌐 Web-View of README.md

Access Here

πŸŽ“ What You’ll Learn

Happy Coding! πŸŽ‰