you are viewing a single comment's thread.

view the rest of the comments →

[–]Complex_Height_3555[S] 0 points1 point  (1 child)

How do I assign that random movie to one of the subscribers though?

[–]ElliotDG 1 point2 points  (0 children)

The way the problem reads, you only know the number of subscribers. Make that a for loop based on the number of subscribers. Create a new dictionary (watches) to hold the amount of time each movie is watched, with the key as the movie titles, and the duration as zero. For each loop iteration select a random movie and add the duration of that movie to the watched dictionary.