Week 2: Data structures and loops#
- Checking In about Datatypes
- Defining Lists
- List Indexing and Lookup
- Last in Line
- Summing the Ends
- Slicing Lists
- Slicing Lists: Your Turn!
- Operations on Lists
- Testing Membership in Lists
- List Membership
- List Length
- Strings and Lists in Python
- Splitting and Joining
- Filtering and Mapping
- Absolute Values
- Map of the Territory
- Mapping and Summing
- What is a reference?
- What is an object?
- References, Objects, and Aliasing
- How to find out if references point to the same object?
- Fruit Salad (Part 1)
- Fruit Salad (Part 2)
- Fruit Salad (Part 3)
- Absolute Values
- A method to our madness
- Counting needles in a haystack
- Excuse me, this is a library
- Dots and dashes
- List methods
- List methods!
- Now backwards is talking
- For loops
- Home on the range
- For/range output
- Factorial
- Using for loops with lists
- How many times does it run?
- Finding something in a list
- Hip to be square
- Counting evens and odds
- While loops
- Tracing a while loop
- Tracing a while loop, redux
- multiply_3
- Searching with while loops
- abs_more_than_10
- User input validation
- Input length validation
- Infinite while loops
- Break statements
- Take a break to think about break
- is_positive_or_multiple_of_7
- Break statements in for loops
- Understanding for loop with breaks
- Find Python!
- Continue statements
- print_numbers
- Randomness
- Fair Die Roll
- What and why are dictionaries?
- Creating dictionaries
- Burgeoning lexicographers
- Looking things up in a dictionary
- Lookup is looking up
- Working with dictionaries
- Adding and deleting keys
- Adding/deleting practice
- Constraints on dictionary keys
- More lookup practice
- Tuples as dictionary keys
- Dictionary and tuple practice
- insert_pair
- How big is the dictionary?
- len on dictionaries
- Using methods for lookup
- Get it?
- Methods for adding and deleting items
- News update
- Looping over dictionaries
- What should we loop over?
- combined_cases
- Finding the mode in a list of numbers
- find_mode
- count_total_words
- Storing lists in dictionaries
- print_emails
- Storing dictionaries in dictionaries
- Dictionaries within dictionaries
- Data processing
- Accessing and updating data
- Getting data out
- Actually processing the data
- lookup_state
- Data with nested dictionaries
- Organizing Data
- Working with nested data
- Lab grades
- Processing nested data
- is_above_85
- Sets
- Uniqueness