diff --git a/python-set/difference_update.py b/python-set/difference_update.py index 400afbe4df..86f086b837 100644 --- a/python-set/difference_update.py +++ b/python-set/difference_update.py @@ -6,4 +6,4 @@ } completed_tasks = {"Fix bug #123", "Improve performance"} todo_list.difference_update(completed_tasks) -todo_list +print(todo_list) diff --git a/python-set/pop.py b/python-set/pop.py index d100ded4bb..0faff8f1bd 100644 --- a/python-set/pop.py +++ b/python-set/pop.py @@ -1,6 +1,6 @@ employees = {"Alice", "Charlie", "John", "Laura"} print(employees.pop()) print(employees.pop()) -employees.pop() -employees.pop() +print(employees.pop()) +print(employees.pop()) employees.pop() diff --git a/python-set/superset.py b/python-set/superset.py index af938b966c..89b337b4c5 100644 --- a/python-set/superset.py +++ b/python-set/superset.py @@ -2,7 +2,7 @@ available_ingredients = {"cheese", "eggs", "milk", "sugar", "salt"} print(available_ingredients >= required_ingredients) -print(available_ingredients.issubset(required_ingredients)) +print(available_ingredients.issuperset(required_ingredients)) a = {1, 2, 3, 4, 5} print(a.issuperset(a)) diff --git a/python-set/union.py b/python-set/union.py index a6f2671fea..846665d2ab 100644 --- a/python-set/union.py +++ b/python-set/union.py @@ -8,5 +8,5 @@ b = {2, 3, 4, 5} c = {3, 4, 5, 6} d = {4, 5, 6, 7} -a.union(b, c, d) +print(a.union(b, c, d)) print(a | b | c | d)