Python - Structured Data Files
You have a list of user info dictionaries:
How can you create a JSON string that only includes users who are active?
users = [
{"id": 1, "name": "Anna", "active": True},
{"id": 2, "name": "Ben", "active": False},
{"id": 3, "name": "Cara", "active": True}
]How can you create a JSON string that only includes users who are active?
