You can split a string by a character:
yourString = "Hello * my name * is * Alex"
yourStringSplitted = yourString.split('*')
More Related Contents:
- Printing the number from a list and its square on the same line in python3 [closed]
- Python3 – create global variable(list) from function
- How to reverse a list?
- How does assignment work with list slices?
- How to avoid “RuntimeError: dictionary changed size during iteration” error?
- In Python, what is the difference between “.append()” and “+= []”?
- a mutable type inside an immutable container
- Different ways of clearing lists
- How to get item’s position in a list?
- Add list to set
- How to find the min/max value of a common key in a list of dicts?
- str.startswith with a list of strings to test for
- How to split strings inside a list by whitespace characters
- Complexity of list.index(x) in Python
- How to transform string of space-separated key,value pairs of unique words into a dict
- Nested list comprehensions
- Python range() and zip() object type
- How do I merge multiple lists into one list? [duplicate]
- How can I format a list to print each element on a separate line in python? [duplicate]
- Group list by values [duplicate]
- Python: filtering lists by indices
- What are dict_keys, dict_items and dict_values?
- Ordered intersection of two lists in Python
- What to consider before subclassing list?
- Creating sublists [duplicate]
- Can’t sort my list because it is NoneType? Simple Python [duplicate]
- How to sort a list of dictionaries by a value of the dictionary in Python?
- Why Python `Memory Error` with list `append()` lots of RAM left
- How to create a nested dictionary from a list in Python?
- Store functions in list and call them later [duplicate]