How can I print list as row

Question:

How can I print:

['12', '567', '32']

like

12
567
32

I tried pd.DataFrame but it gives row numbers i dont want that

Asked By: jetrldz

||

Answers:

The newline character n prints a new line:

l = [12, 567, 32]
print('n'.join(str(x) for x in l))
Answered By: Tom McLean
Categories: questions Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.