Very simple solution and easy to understand.
\n\n\n\n# Code\npython3 []\nclass Solution:\n    def numUniqueEmails(self, emails: List[str]) -> int:\n        unique_emails = set()  # To store unique email ad
![image.png](https://assets.leetcode.com/users/images/c4211373-2921-410f-a3e2-21157dc88e89_1729359133.7153442.png)\n\n\n\n# Code\n```python3 []\nclass Solution:\n    def numUniqueEmails(self, emails: List[str]) -> int:\n        unique_emails = set()  # To store unique email addresses\n\n        for email in emails:\n            local_name, domain_name = email.split(\'@\')\n            \n            # Process local name: remove periods and ignore part after plus sign\n            local_name = local_name.split(\'+\')[0]  # Get part before \'+\'\n            local_name = local_name.replace(\'.\', \'\')  # Remove all \'.\'\n\n            # Combine processed local name with domain name\n            unique_email = f"{local_name}@{domain_name}"\n            unique_emails.add(unique_email)  # Add to the set\n\n        return len(unique_emails)  # The size of the set is the number of unique emails\n\n\n\n\n```
['Python3']