We're diving right in with a happy hour script! Don't be scared. Stick with me.
What if you had to make some changes to the code? Let's give it a shot.
Can you write your own randomizer script? Let's give it a shot.
HELP! IT'S NOT WORKING! Before you freak out, let me walk you through what might go wrong when you make a typo, and how you can fix it.
You already know what variables are. They're just names for things. They're the building blocks of programming.
Strings are an important data type so it's important to know how they work in Python.
Putting variables inside strings may seem complicated at first (it's just the syntax that's weird) but stick with it because it's pretty simple once you yet it.
There's probably a better way to put variables into strings in Python than what I showed you in week 1. Here I teach you how to do it.
Loops let you do the same thing over everything in a list? Confused? They're really useful. Let me show you what I mean.
What? More stuff? This is it. Dictionaries are basically arrays where you can look up something using a special key (basically a string).
Let's update our weather forecast script based on what we learned in the last lesson.
Let's make a big improvement on the simple Weather API script we built in the last few lessons.
Let's modify the Yelp API function so that it returns a list of businesses
Let's modify the function from the last lesson yet again to return a list of dictionaries of businesses.
I'll show you how to hide your API Keys in environment variables
You can use the Dotenv Python Package to set and load your hidden API keys.
We'll start off with a simple exercise, scraping all the links from Google using the BeautifulSoup Python library.
Let's scrape something a little more advanced (Amazon), which means getting past their security.
Let's parse through the HTML result from Amazon so we can actually grab product titles and prices.
Templates let you create HTML pages in Flask so that you can show things to a user through a browser.
Use a little Bootstrap to improve the design of your web app.
Now we get to the real magic of Flask, combining HTML and Python code.
I'll show you how you can combine your Flask app with other code you've written, specifically the code we previously wrote to look up the weather forecast.
You don't want to save API keys and other sensitive information in your code itself, so I'll show you how you would hide that in your environment variables (again).
Oops, we ran into an error on Heroku. I'll show you how you can troubleshoot errors in production
I'll show you two other useful things you should know about Heroku.
I want you to take everything we've learned so far and combine it into creating your own Heroku app.