I have a Python list like:
['[email protected]', '[email protected]'...]
And I want to extract only the strings after @ into another list directly, such as:
mylist = ['gmail.com', 'hotmail.com'...]
Is it possible? split() doesn't seem to be working with lists.
This is my try:
for x in range(len(mylist)):
mylist[x].split("@",1)[1]
But it didn't give me a list of the output.