I have a string.
s = \'1989, 1990\'
I want to convert that to list using python & i want output as,
s = [\'1989\', \'19
Use list comprehensions:
s = '1989, 1990' [x.strip() for x in s.split(',')]
Short and easy.
Additionally, this has been asked many times!