A python course being taught at roadbotics.
We're starting slow.
- Import a library
- Set variables
- Simple arithmetic
- Call a function from a library
- Print to screen
- Make lists
- Iterate over the lists
Read week_1.py from top to bottom.
Build a dice game!
- Import a library
- Set variables
- Call a function from a library
- Print to screen
- Make lists
- Iterate over the lists
Read week_2.py from top to bottom.
Building out the dice game!
- Define a function
- Call the function
- Iterate over the lists
- Append to lists
Read week_3.py from top to bottom.
Building Fizz Buzz
- FIZZ BUZZ!
- Functions, for loops
- Modulo, adding to lists
- Getting our feet wet with file handling
Read week_4.py from top to bottom.
Shelve Files and Dictionaries!
- Creating dictionaries
- Handling shelve files
Read week_5.py from top to bottom.
Requests, pip (installing packages), and BeautifulSoup
- Installed requests and bs4 via pip
- Sent requests to the weather underground
- Put the page content into BeautifulSoup
- Pulled the 'feels like' temperature and displayed
- Bonus: took a zip code as input to scrape different cities in PA
Read week_6.py from top to bottom.
Furthering our weather page scraper
- Took a state and zip code as input to scrape different cities
- Output a dictionary with a zip_code key and temp value
Read week_7.py from top to bottom.
Finishing the weather scraper
- Big one
- Puts it all together
- Scrape a page, parse the html
- For loops, file writing, list access, oh my!
Read week_8.py from top to bottom. The file is heavily commented.
Rock, Paper, Scissors
- Setting variables
- Input from the terminal
- List and Dict data retrieval
- if, elif, else logical structures
Read week_9.py from top to bottom.
Starting Blackjack
- Different ways to make a deck of cards
- Setting variables
- List and Dict comprehension
Read week_10.py from top to bottom.
Building Blackjack
- Make a deck of cards (simple version)
- Make a function for drawing cards
- Print a dealer and player hand
Read week_11.py from top to bottom.