← 2023 questions

2023 / NETFLIX / QUESTION 26

Viewing queue

Try the question in your own editor, then check your output below.

THE QUESTION

Charlotte enjoys watching movies and television series on Netflix when she has free time. She has a to-do list of numerous films and TV episodes, but she frequently loses track of which ones she's already seen. She wants to programme in Python to keep track of her Netflix queue. There needs to be a user input function that asks Charlotte which movie she has watched and then output the current queue. Create 5 movie inputs of your choice which should also print the updated queue 5 times.

(There are multiple ways to attempt this problem but you could use count loops)

Question by Aaleyah. Source: Girls In Code SEA — Behind the Screens, 2023, slide 44.

PRACTICE CHECK

Try your answer.

New deterministic queue checkpoint; it does not test the full interactive five-input interface.

Run your program in your own editor, then paste its output below. This checks the stated output or checkpoint; it does not assess your full program. Practice attempts do not affect competition scores.

New practice queue [A, B, C, D, E]. Mark B watched, then A watched. Enter the remaining queue.

Reveal worked answer

Updated queue

["C", "D", "E"]

Remove watched titles without reordering the remaining entries.