From 01129a0239d8002c8a36ed357292e68cbfeacbc1 Mon Sep 17 00:00:00 2001 From: BBB-hackathon Date: Sun, 5 Apr 2026 19:43:58 +0530 Subject: [PATCH] Added stock analysis script --- stock_analysis.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 stock_analysis.py diff --git a/stock_analysis.py b/stock_analysis.py new file mode 100644 index 0000000..8a57b0b --- /dev/null +++ b/stock_analysis.py @@ -0,0 +1,11 @@ +# Stock Analysis Script + +import yfinance as yf + +ticker = input("Enter stock symbol (e.g., AAPL): ") + +stock = yf.Ticker(ticker) +data = stock.history(period="5d") + +print("\nStock Data:\n") +print(data) \ No newline at end of file