Mutability8:35 with Craig Dennis
Lists are mutable. You should be careful when passing them around or using them in loops. Let's explore why!
Slicing allows you to specify a range of elements from within a list. We will go over them in great detail in a bit. Here's a sneak peek (search for slicing).
Here's the solution using slices
def display_wishlist(display_name, wishes): print("====> Suggested gift:", wishes, "<=====") # Return a slice of the list from the 2nd element on... for wish in wishes[1:]: print("* " + wish) print()
You need to sign up for Treehouse in order to download course files.Sign up