79656487

Date: 2025-06-06 21:12:26
Score: 1.5
Natty:
Report link

I think I found a workaround to satisfy this question. I couldn't get @kindall 's answer to work for some reason. So I'm using this:

emails = [email[:email.find('@')] for email in user_emails] # return everything up to the @

This will return everything up to the @ symbol. If you want everything after the @ symbol, run the following:

emails = [email[email.find('@'):] for email in user_emails # returns everything after the @ symbol
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @kindall
  • Low reputation (1):
Posted by: Christopher Johnson