You're close, try these small tweaks:

Lists are iterables, which means its easier to use for-loops than you think:

for x in mylist:
  #do something

Now, the thing you want to do is 1) split x at '@' and 2) add the result to another list.

#In order to add to another list you need to make another list
newlist = []
for x in mylist:
     split_results = x.split('@')
     # Now you have a tuple of the results of your split
     # add the second item to the new list
     newlist.append(split_results[1])

Once you understand that well, you can get fancy and use list comprehension:

newlist = [x.split('@')[1] for x in mylist]
Answer from calico_ on Stack Overflow
🌐
GeeksforGeeks
geeksforgeeks.org › python › extract-list-of-substrings-in-list-of-strings-in-python
Extract List of Substrings in List of Strings in Python - GeeksforGeeks
July 23, 2025 - List slicing is a versatile technique that allows you to extract substrings based on their position within each string. The following example demonstrates how to extract the first three characters from each string in the list:
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-find-all-the-strings-that-are-substrings-to-the-given-list-of-strings
Python - Find all the strings that are substrings to the given list of strings - GeeksforGeeks
April 21, 2023 - In this, any() is used to check for substring matching in any of the strings from the string list to be matched in. ... # Python3 code to demonstrate working of # Substring Intersections # Using any() + generator expression # initializing lists ...
🌐
GeeksforGeeks
geeksforgeeks.org › python › create-list-of-substrings-from-list-of-strings-in-python
Create List of Substrings from List of Strings in Python - GeeksforGeeks
July 23, 2025 - In this example, a lambda function is applied using the `map()` function to extract substrings `[1:4]` from each string in the `original_list`. The result is a new list, `substring_list`, containing the extracted substrings, which is then printed.
🌐
Delft Stack
delftstack.com › home › howto › python › extract substring from a string in python
How to Extract Substring From a String in Python | Delft Stack
February 2, 2024 - A substring is a subset of a string. In Python, we can easily do this task using string slicing or using regular expression or regex. There are a few ways to do string slicing in Python.
🌐
GeeksforGeeks
geeksforgeeks.org › extract-substrings-from-a-list-into-a-list-in-python
Extract Substrings From A List Into A List In Python - GeeksforGeeks
February 16, 2024 - List comprehension is a concise and elegant way to create lists in Python. It also proves to be effective for extracting substrings from a list. This approach utilizes a compact syntax to iterate through the elements of the original_list and extracts the first three characters from each string.
🌐
Sentry
sentry.io › sentry answers › python › extract a substring from a string in python
Extract a substring from a string in Python
2 weeks ago - Extract substrings from Python strings using slice notation with [start:end] indexes, or use re.search() with regex patterns for matching specific formats
🌐
GeeksforGeeks
geeksforgeeks.org › python-finding-strings-with-given-substring-in-list
Finding Strings with Given Substring in List - Python - GeeksforGeeks
January 31, 2025 - Let's discuss certain ways in which this task can be performed using Python.Using partition()To extract the portion of a string that occurs after a specific substring partition() method is an efficient and
🌐
Note.nkmk.me
note.nkmk.me › home › python
Extract a Substring from a String in Python (Position, Regex) | note.nkmk.me
April 29, 2025 - You can retrieve the matched substring using the group() method of the match object. m = re.search(r'\d+', s) print(m.group()) # 012 print(type(m.group())) # <class 'str'> ... As shown in the example above, re.search() returns only the first ...
Find elsewhere
🌐
Note.nkmk.me
note.nkmk.me › home › python
Extract and Replace Elements That Meet the Conditions of a List of Strings in Python | note.nkmk.me
May 19, 2023 - Replace strings in Python (replace, translate, re.sub, re.subn) List comprehensions offer a simpler alternative to the traditional for loop when creating new lists. ... To extract elements that meet condition, you don't need to process them with expression; just use variable_name. [variable_name for variable_name in iterable if condition] If you change if condition to if not condition, you can extract elements that do not satisfy condition, i.e., exclude elements that satisfy condition.
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-all-occurrences-of-substring-from-the-list-of-strings
Python - All occurrences of Substring from the list of strings - GeeksforGeeks
July 15, 2025 - In this, we run a loop to extract all strings and also all substring in the list. The in operator is used to check for substring existence. ... # Python3 code to demonstrate working of # Strings with all Substring Matches # Using loop + in operator ...
🌐
YouTube
youtube.com › pythonguides
How to Extract String From List in Python | Python Get String From List | Python Beginner Tutorial - YouTube
In this Python tutorial, you will learn how to extract strings from a list in Python using the indexing, slicing and list comprehension methods.Indexing is a...
Published   April 19, 2024
Views   142
🌐
Stack Overflow
stackoverflow.com › questions › 63254834 › how-to-extract-a-list-of-substrings-using-recursion
python - How to extract a list of substrings using recursion? - Stack Overflow
Given a string say, strr = "int a; int b; int c;" How can I extract a list from this string containing elements like ['int a', 'int b', 'int c']. I want to achieve this output with recursion and no RegEx at all. Please guide. ... Though there are simpler methods, a solution using recursion is as follows. def extract(s): ' finds substrings delimited by ; ' try: index = s.index(';') # current word + recursion for remainder # index + 1 in recursion to skip over ';' return [s[:index]] + extract(s[index+1:]) except: # delimiter wasn't found (base case) return []
🌐
w3resource
w3resource.com › python-exercises › list › python-data-type-list-exercise-102.php
Python: Extract specified size of strings from a give list of string values - w3resource
Write a Python program to extract specified size of strings from a give list of string values. ... # Define a function 'extract_string' that extracts strings of a specified length from a list def extract_string(str_list1, l): # Use a list comprehension to filter strings in 'str_list1' with a length of 'l' result = [e for e in str_list1 if len(e) == l] return result # Create a list 'str_list1' containing strings str_list1 = ['Python', 'list', 'exercises', 'practice', 'solution'] # Print a message indicating the original list print("Original list:") # Print the contents of 'str_list1' print(str_
🌐
LearnPython.com
learnpython.com › blog › substring-of-string-python
How to Get a Substring of a String in Python | LearnPython.com
April 26, 2022 - Much like arrays and lists in Python, strings can be sliced by specifying the start and the end indexes, inside square brackets and separated by a colon. This returns a substring of the original string. Remember indexing in Python starts from 0.
🌐
Python Guides
pythonguides.com › how-to-get-string-values-from-list-in-python
Extract Strings from a List in Python
September 30, 2025 - # Sample list with mixed data data = ["Apple", 10, "Banana", 20, "Cherry", 30] # Create an empty list to store strings only_strings = [] # Loop through each item and check if it's a string for item in data: if isinstance(item, str): only_strings.append(item) print("Extracted Strings:", only_strings) You can refer to the screenshot below to see the output. This method is longer, but it’s very clear and beginner-friendly. I often use this style when teaching Python to new developers in the USA because it’s easy to follow step by step.