Filter and transform with a comprehension
Foundation · fluency · 15 min · runtime python
Brief
Implement active_emails(users: list[dict]) -> list[str] returning lowercased emails of active users, skipping users with no email, in one comprehension.
3 progressive hints are available in the editor.
Public checks
- filters inactive — expected:
["a@x"]