Popcorn Hacks



movie_list = ["Spiderman", "Rush Hour", "Deadpool"]

movie_list.append("Sherlock") # Hack #1

movie_list.remove("Spiderman") # Hack #2

movie_list[2] = "Mean Girls" # Hack #3

print("Updated list:", movie_list)


Homework Hack


# Create a list with some numbers
numbers = [10, 15, 22, 33, 40, 8, 57, 99, 72]

even_num_sum = 0
for score in nums:
   if score % 2 == 0: 
       even_num_sum += score 
print("Sum of even numbers in the list:", even_sum)

min_value = min(numbers)

max_value = max(numbers)

print("Minimum value:", min_value)
print("Maximum value:", max_value)