1/10: This code should print out someone's favorite movie if they have one.
Make sure you create the variable before trying to change it.
if let movie = favoriteMovie {
favoriteMovie = "The Life of Brian"
print("Your favorite movie is \(movie).")
var favoriteMovie: String? = nil
}
} else {
print("You don't have a favorite movie.")
Link copied to your pasteboard.