Suppose, I am making a movie rating app. A logged-in user should be able to rate the movie with stars (in the range 1 to 5).
I want to quickly access all the rater's name along with their rating. If a user rates the movie again, the rating should be updated. At the same time, if a user decides to withdraw his rating i.e. provide zero rating, I would like to remove the entry from the field.
I believe dictionary would be the best choice to achieve the same. However, I am open for suggestions.
I also want a user to see all the movies the he/she has rated along with the rating.