7.2.9 Top Movies · Extended
Here is the definitive ranking of the —the heist thrillers that define the genre.
(using a join)
# 1. Create a list of favorite movies movies = ["The Shawshank Redemption", "The Dark Knight", "The Godfather", "Pulp Fiction"] # 2. Print the 0th element in the list print(movies[0]) # 3. Update the 0th element to "Star Wars" movies[0] = "Star Wars" # 4. Print the 0th element again to verify the change print(movies[0]) Use code with caution. Copied to clipboard Key Concepts to Remember 7.2.9 Top Movies
SELECT title, rating, votes FROM movies WHERE votes >= 1000 ORDER BY rating DESC, votes DESC LIMIT 10; Here is the definitive ranking of the —the