03 Collections
# 3A: Count occurrences with a dictionary.
topics = ["python", "data", "python", "charts", "data"]
counts = {}
# TODO
assert counts == {"python": 2, "data": 2, "charts": 1}
# 3B: Make an independent list and append 40 without changing original.
original = [20, 30]
edited = None
# TODO
assert original == [20, 30] and edited == [20, 30, 40]
# 3C: Produce an alphabetically sorted list of unique topics.
unique = None
assert unique == ["charts", "data", "python"]
print("Module 3 checks passed")