A quick overview of what we'll be doing in this class.
Let's get some background on Python first.
Let's get Python set up on your computer.
The command line can be a scary place for beginners, but there are only a handful of commands you'll need to know in order to use it including pwd, cd, and ls.
We're diving right in with a happy hour script! Don't be scared. Stick with me.
How do you read code? In this lesson I walk you through how I would do it.
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.
Print: one of the most useful things you can learn to do in Python.
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.
Once you learn about comments, you'll start seeing them #everywhere.
You already know what variables are. They're just names for things. They're the building blocks of programming.
Let's play around with some numbers and math in Python.
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.
How can you get input from people interacting with your scripts?
Make me a tip calculator.
I didn't plan to make this lesson, but we messed up. And I want to show you how to fix it.
Let's play with another script that interacts with an API
Functions make the Python world go round.
Learn how to use functions to set variables
Let's do a quick challenge about functions.
Have you ever wondered "What if..."?
Else and Elif are the other half of If.
I'm going to add a bit of flexibility to our script by introducing Or.
Even better than ==, In is one of my favorite ways to do an If statement in Python.
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.
Lists are basically lists of things in Python. Let me show you how to use them.
Loops let you do the same thing over everything in a list? Confused? They're really useful. Let me show you what I mean.
I'm going to challenge you with a common developer interview question.
Here's how I solved FizzBuzz
What? More stuff? This is it. Dictionaries are basically arrays where you can look up something using a special key (basically a string).
Back to our stock_prices.py
You made it halfway! It's gonna get serious now. We're going to write some real code.
Get the weather forecast using a Python script
Let's explore the Dark Sky Forecast API and figure out how to use it.
Let's update our weather forecast script based on what we learned in the last lesson.
See the solution to the challenge posted in the last video
Let's explore using Geopy to use an address to get a latitude and longitude
Let's make a big improvement on the simple Weather API script we built in the last few lessons.
Learn how to use the Yelp API to look up local restaurants!
See the solution to the challenge that I posted in the last video
Let's see what other kind of stuff we can access through the Yelp API.
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.
How to use import.
Your assignment for week 3
Let's use Flask to build your first web application in Python.
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.
Here's how you create a second page in your web app.
Now we get to the real magic of Flask, combining HTML and Python code.
You can use HTML forms to take in all sorts of user input.
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).
Let's get your code up on Github.
This is a big day! Today we're gonna deploy your app live on Heroku.
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.
If you've finished the course and completed all the assignments, you're eligible to receive a certificate of completion.
Some short advice about how you should do this final week of One Month Python
We'll start off with a simple exercise, scraping all the links from Google using the BeautifulSoup Python library.
How to actually use BeautifulSoup to parse through HTML
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.
If you do a lot of web scraping, you probably want to save your results somewhere, like a CSV.
Reviewing the assignment from week 1: tip.py
Already have an account?