Python to get the stock prices

import yfinance as yf stockcode = ["MSFT", "AAPL", "SPLK", "CSCO", "GOOG", "TSLA", "NOK"] stocks = [] for item in stockcode: #print(item) s = yf.Ticker(item) stock_instance = { "code": item, "website": s.info['website'], "price": s.info['regularMarketPrice'] } stocks.append(stock_instance) #print(s.info['website']) #print(stock_instance) print(stocks)

Git commands

echo "#Django" >> README.md git init git add README.md git commit -m "first commit" git branch -M master git remote add https://github.com/appletreecy/Django.git git push -u origin master git pull

First Previous 2 3 4 5 6 Next Last

Our Sidebar

You can put any information here you'd like.

  • Latest Posts
  • Announcements
  • Calendars
  • etc