This is a simple Python-based Stock Portfolio Tracker developed as part of the CodeAlpha Internship.
The program allows users to input stock names and quantities, calculates the total investment value using predefined stock prices, and saves the result to a file.
portfolio.txt)Clone this repository:
git clone https://github.com/Vishalkr113/CodeAlpha_stock-portfolio-tracker.git
Navigate to the project folder:
cd CodeAlpha_stock-portfolio-tracker
Run the program:
python main.py
How many stocks do you want to enter? 2
Enter stock name: AAPL
Enter quantity: 3
Enter stock name: TSLA
Enter quantity: 2
Your Portfolio:
AAPL -> 3 shares = $540
TSLA -> 2 shares = $500
Total Investment Value = $1040
The program generates a file:
portfolio.txt
===== STOCK PORTFOLIO SUMMARY =====
AAPL -> 3 shares = $540
TSLA -> 2 shares = $500
-----------------------------------
Total Investment Value = $1040
This project is created for:
CodeAlpha Python Programming Internship Task 2: Stock Portfolio Tracker
Vishal Kumar