diff --git a/Week05/emails_yasin_soytas.py b/Week05/emails_yasin_soytas.py new file mode 100644 index 00000000..4eeb224a --- /dev/null +++ b/Week05/emails_yasin_soytas.py @@ -0,0 +1,12 @@ +class Emails(list): + def __init__(self, emails=None): + super().__init__() + + if emails is None: + return + + for email in emails: + if isinstance(email, str) and "@" in email: + email = email.lower() + if email not in self: + self.append(email)