>>>line=['hello',' this',' is', 'a',' test']
>>>print line
['hello', 'this', 'is', 'a', 'test']
But i want that when line is printed, it should be a whole string and not like elements of a list. This is what i tried:
>>> print line[k] for k in len(line)
SyntaxError: invalid syntax
How can this list line can be printed as a string?