I\'m a Python noob and I need some help for a simple problem.
What I need to do is create a list with 3 items and add spaces before and after every item.
For
>>> lst = ['a', 'bb', 'c'] >>> >>> [' {} '.format(x) for x in lst] [' a ', ' bb ', ' c '] >>>