From the course: Build Three Real-World Python Applications

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Solution: Analyze Microsoft stock

Solution: Analyze Microsoft stock - Python Tutorial

From the course: Build Three Real-World Python Applications

Solution: Analyze Microsoft stock

- [Instructor] Welcome back. Nice job analyzing the Microsoft stock to help Todd make a wise decision for his investment. If you felt overwhelmed with this challenge, do not worry. I will explain step by step what should have been filled in and what each line of code is doing. Once you run the code at the top of our coding file, you can begin pulling in data for the Microsoft stock. For this first line of code, we want to get the monthly data for our Microsoft stock, so all we have to put in here is MSFT to use with our get monthly function. When you run this, you will get the monthly stock data for Microsoft. Next we will pull in the weekly stock data for Microsoft. Again, this uses a very similar, like the monthly data above. So we do TS1 dot get underscore weekly, and we use it with our Microsoft symbol, so again, MSFT. We run this and then now you can see the weekly stock data for Microsoft. Next we want to pull in our…

Contents