title: Searching for dict in list in dict
body: <p>I'm very new, and I'm working on a project that right now involves writing a function that will search for a dictionary contained in a list which is itself the value of one of two key/value pairs in another dictionary. The goal is to search for a movie by title, and then remove that movie's dict from that list and put it in a different list. Right now I've got</p>
  <pre><code>def watch_movie(user_data, title):
  
      if title in user_data:
          user_data[&quot;watchlist&quot;].remove(title)
          user_data[&quot;watched&quot;].append(title)
          return user_data
  
      else:
          return user_data
  </code></pre>
  <p>Any tips?</p>