convert string to list [duplicate]

You can split a string by a character:

yourString = "Hello * my name * is * Alex"
yourStringSplitted = yourString.split('*')

Leave a Comment