How can I print list as row

How can I print:

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

like

12
567
32

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

>Solution :

The newline character \n prints a new line:

l = [12, 567, 32]
print('\n'.join(str(x) for x in l))

Leave a Reply