Write Python Function for Data Processing Task
Category: Code Generation & Debugging
Write a Python function that takes a list of dictionaries, '[list_variable_name]', as input. Each dictionary represents a user with 'id', 'name', and 'email' keys. The function should filter this list to return only users whose email domain is '[target_domain]' (e.g., 'example.com'). Include error handling for invalid input.
You can edit the prompt before copy
If you share the link prompt will be shared without your changes