Challenge: Movie Ratings List
Swipe to start coding
Create a program that manages a list of movies and their ratings using two separate lists. You will use lists to store the titles of movies and their corresponding ratings. This challenge will help you practice adding items to lists and displaying their contents.
- Add the provided
movieandratingto themoviesandratingslists in theAddMoviefunction. - In the
PrintMoviesWithRatingsfunction, print each movie title from themovieslist along with its corresponding rating from theratingslist.
Solution
Thanks for your feedback!
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Awesome!
Completion rate improved to 4.76
Challenge: Movie Ratings List
Swipe to show menu
Swipe to start coding
Create a program that manages a list of movies and their ratings using two separate lists. You will use lists to store the titles of movies and their corresponding ratings. This challenge will help you practice adding items to lists and displaying their contents.
- Add the provided
movieandratingto themoviesandratingslists in theAddMoviefunction. - In the
PrintMoviesWithRatingsfunction, print each movie title from themovieslist along with its corresponding rating from theratingslist.
Solution
Thanks for your feedback!
single