Back to Lesson

Data Reconciliation

Utilize set operations to resolve missing segments between datasets.

Instructions

  • Given
    db_users = {"A", "B", "C", "D"}
    and
    active_users = {"B", "D", "E"}
    .
  • Using set operators, calculate and print:
    1. The totally isolated missing users in
      db_users
      that are not in
      active_users
      (Difference).
    2. The new "guest" users in
      active_users
      that are not in
      db_users
      (Difference).
    3. Users present in BOTH systems (Intersection).
  • In each case, encapsulate your calculation in
    sorted(list(...))
    before printing.
main.py
main.py