CODE-ALPHA-TASK-2-STOCK-PORTFOLIO-TRACKER

CodeAlpha Stock Portfolio Tracker 📈

📌 Project Overview

This project is a simple Stock Portfolio Tracker developed using Python as part of the CodeAlpha Python Programming Internship.

The program allows users to select stocks, enter quantities, calculate individual investments, and display the total investment value using predefined stock prices.

✨ Features

🛠️ Technologies Used

📚 Python Concepts Used

📂 Project Structure

CodeAlpha_StockPortfolioTracker/
│
├── stock_portfolio.py
└── README.md

▶️ How to Run the Project

  1. Install Python 3 on your computer.
  2. Download or clone this repository.
  3. Open the project folder in Visual Studio Code.
  4. Open the terminal.
  5. Run the following command:
python stock_portfolio.py

If the command does not work, try:

py stock_portfolio.py

💻 Sample Output

STOCK PORTFOLIO TRACKER

Available Stocks:
AAPL - $180
TSLA - $250
GOOGL - $150
MSFT - $400
AMZN - $180

Enter stock name: AAPL
Enter quantity: 5

Stock added successfully!
Stock: AAPL
Price: $180
Quantity: 5
Investment: $900

Do you want to add another stock? (yes/no): no

PORTFOLIO SUMMARY

Stock: AAPL
Price: $180
Quantity: 5
Investment: $900

TOTAL INVESTMENT: $900

🎯 Learning Outcome

This project helped me understand dictionaries, lists, loops, user input, data validation, and calculating investment values using Python.

👩‍💻 Author

Ayushree Shrivastava

🎓 Internship

CodeAlpha - Python Programming Internship