Your Python Toolkit
- Print
- Variables
- Arithmetic operators:
+, -, *, /, **
- Relational operators:
<, >, <=, >=, ==, !=
- Functions
def
- Types: boolean, string, integer, float
- Conditionals:
and, or, not
- String concatenation
- Format strings
- Lists: create a list, modify, append, len, remove, pop, sort
- Check if element is
in
the list
- Ranges
- For loops
- Nested for loops
- While loops
- Tuples
- Dictionaries
- Data analysis with CSV files
- Graphing with matplotlib
- Object oriented programming: classes and objects
- Pygame
Your laptop
Here is the service manual for the Dell Inspiron 15 3510.
Book resources
Think Python by Allen B. Downey is an introduction to Python programming for beginners.
June 27: setup, github, and command line
What we did today:
- Made a user account on our Linux computers
- Made a GitHub account to save our code
- Learned basic commands for Terminal
Extra resources:
June 28: HTML
What we did today:
- Finished setting up GitHub
- Learned about HTML
- Started creating an About Me webpage in HTML
Extra resources:
June 29: CSS
What we did today:
- HTML tables
- Learned about CSS
- Intro to binary and hexadecimal
- RGB and HEX codes for colors
- Styling your About Me webpage
Extra resources:
June 30: CSS, HTML, and multiple pages
What we did today:
- Review of CSS
- Review of HTML tables
- Adding a page and buttons
- Linking multiple stylesheets
Extra resources:
July 1: CSS classes and "coding" in the terminal
What we did today:
- CSS classes
- Terminal commands: grep, cut, sort, redirection, etc
Extra resources:
July 5: Intro to Python
What we did today:
- Print
- Variables
- Arithmetic operators
- Relational operators
- Types: boolean, string, integer, float
- Conditionals: and/or/not, truth tables
Extra resources:
July 6: More Python
What we did today:
- Review of yesterday
- String concatenation
- Format strings
- Mapping out adventure game
Extra resources:
July 7: Project - adventure game
What we did today:
- Review of functions
- Getting user input
- Adventure game
- Intro to testing
Extra resources:
July 8: Lists
What we did today:
- Review of testing
- Practice problems
- Lists: create a list, modify, append, len, remove, pop, in, sort
Extra resources:
July 11: For loops
What we did today:
- For loops with lists
- Ranges
- For loops with ranges
Extra resources:
July 12: More for loops
What we did today:
- More practice with for loops
- Introduce CTA list project
Extra resources:
July 13: CTA list project
What we did today:
- Warm-up list problems with the weather
- CTA list project
Extra resources:
- In class weather problems
- may_june = [59, 55, 52, 56, 54, 54, 75, 79, 85, 92, 91, 95, 94, 79, 80, 65, 63, 88, 89, 63, 64, 62, 67, 83, 79, 63, 76, 87, 91, 90, 79, 79, 83, 81, 76, 71, 72, 80, 82, 75, 74, 92, 100, 100, 97, 88, 75, 88, 96, 101, 92, 85, 93, 81, 82, 81, 88, 89, 93, 86, 87, 89, 95]
- red_line_stops = ["Howard", "Jarvis", "Morse", "Loyola", "Granville", "Thorndale", "Bryn Mawr", "Argyle", "Wilson", "Sheridan", "Addison", "Belmont", "Fullerton", "North/Clybourn", "Clark/Division", "Chicago", "Grand", "Lake", "Monroe", "Jackson", "Harrison", "Roosevelt", "Cermak-Chinatown", "Sox-35th", "47th", "Garfield", "63rd", "69th", "79th", "87th", "95th/Dan Ryan"]
- green_line = ["Oak Park (Green)","Harlem/Lake","Ridgeland","Austin (Green)","Central (Green)","Laramie","Cicero (Green)","Pulaski (Green)","Conservatory-Central Park Drive","Kedzie-Green","California-Green","Ashland-Lake","Morgan-Lake","Clinton (Green/Pink)","Clark/Lake","State/Lake","Washington/Wabash","Adams/Wabash","Roosevelt","Cermak-Mccormick Place","35th-Bronzeville-Iit","Indiana","43rd","47th (Green)","51st","Garfield (Green)","King Drive","East 63rd-Cottage Grove"]
July 14: Linux installation; CTA list project
What we did today:
- Linux OS as free software
- Installing Linux on an old computer
- Finished CTA list project
Extra resources:
July 15: While loops
What we did today:
- Intro to while loops
- Dice game demo
- Cornhole score calculator
Extra resources:
July 18: Nested for loops
What we did today:
- Nested for loops
- Nested lists
- Make your own project with nested for loops
Extra resources:
July 19: Tuples and dictionaries
What we did today:
Extra resources:
July 20: Writing HTML using Python
What we did today:
- Gradient project in Python; redirection to HTML
- Dictionary practice problems (Part 5 under Extra Problems)
Extra resources:
July 21: CSV processing
What we did today:
- Work with CSV files in Python
Extra resources:
July 22: Plotting with matplotlib
What we did today:
- Plot with matplotlib
- Work with CSV files in Python
Extra resources:
July 25: Object oriented programming
What we did today:
- Played Chocolate Milk, SCUBA's hit new card game
- Learned about classes, objects, properties, methods, and init
Extra resources:
July 26: OOP and coding Chocolate Milk
What we did today:
- Review of classes
- Code up Deck class in Chocolate Milk
Extra resources:
July 27: Memory upgrades and more Chocolate Milk
What we did today:
- Upgraded RAM in our computers from 4GB to 8GB
- Finish Deck class and start the game class in Chocolate Milk
Extra resources:
July 28: Intro to pygame with RGB colors
What we did today:
- Coded an RGB helper with pygame
Extra resources:
July 29: Images and audio in pygame
What we did today:
- Create a pygame program to roll two dice
Extra resources:
August 1: More tools in pygame
What we did today:
- Pygame tutorials
- Brainstorm a game
Extra resources:
August 2: Create a game
What we did today:
- Day 1 of independent work time
Extra resources:
August 3: Finish up game
What we did today:
- Day 2 of independent work time
- Wrap up games
August 4: Flask weather app
What we did today:
- Create a weather application with Python and Flask
- Use an API
- Learn about JSON
Extra resources:
August 5: Closing remarks
What we did today:
- Closing remarks, pack up laptop to take home
- Have a great summer!
Extra resources:
- See the About Us page for our contact info