Popcorn Hack 1: What are some possible benefits of using lists? What are some real world examples of lists being used in code?
- It can store a lot of data in one place that’s easy to find
- Access them individually
- Sort and organize the data for easier use
Popcorn Hack 2: What does this code output?
items = ["pen", "pencil", "marker", "eraser"]
items.remove("pencil")
items.append("sharpener")
print(items[2])
Output: eraser
Popcorn Hack 3: What are some real world examples of filtering algorithms?
Real-world examples of filtering algorithms include spam filters in email services that block unwanted messages, and recommendation systems like Netflix or Spotify that filter content based on your viewing or listening history.