Lecture 5
Announcements
- Piazza - read my posts, post to all TAs, we will answer you faster
- Regrades on attendance - Email Jason Gong
- Quiz
- generally went really well
- will release results tomorrow
- Quiz2 is on Monday, July 16th - expect quiz2 to be harder
- Homeworks - go over schedule for the week
- HW5 due tomorrow - basic list problems
- HW6 due Thursday - fun 2D list stuff
- HW7 due Friday - Graphics
- HW8 due Monday - Sudoku Animation
- HW9 due Wednesday - Tetris!
- Midterm - a week from Friday
- Looking through code
- lots of ways to do problems -- longestDigitRun
- over-collaboration
Lecture
- [9:00] Announcements
- [9:10] Quick catch up
- Truthy/Falsy + short circuit evaluation
- [9:15]1D lists - the basics
- Built-ins, making a list
- indexing and slicing
- immutability
- list comprehensions
- [9:20] Aliasing - destructive + non-destructive
- [9:25] Adding to lists
- [9:30] Removing from lists
- [9:35] Looping through lists
- [9:40] Swapping and sorting lists
- [9:45] Attendance Check
- [9:50] Comparing lists
- [9:55] Copying lists
- [10:00] Lists and strings
- [10:05] Tuples
- [10:10] areAnagrams with lists
- [10:15] lockerProblem demo
Skipped Topics
Up Next