Back to Lesson
Data Reconciliation
Utilize set operations to resolve missing segments between datasets.
Instructions
- Givenand
db_users = {"A", "B", "C", "D"}.active_users = {"B", "D", "E"} - Using set operators, calculate and print:
- The totally isolated missing users inthat are not in
db_users(Difference).active_users - The new "guest" users inthat are not in
active_users(Difference).db_users - Users present in BOTH systems (Intersection).
- In each case, encapsulate your calculation inbefore printing.
sorted(list(...))
main.py
main.py
Ctrl + Enter