Simple contact grouping by city.
python contact_log.py{'city_a': ['user_1', 'user_2'], 'city_b': ['user_3']}
- If a
TypeErroroccurs, check the data type before grouping. - If an
AttributeErrorappears, make sure you're using the correct method for the object.