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
Answers:
The newline character n
prints a new line:
l = [12, 567, 32]
print('n'.join(str(x) for x in l))
How can I print:
['12', '567', '32']
like
12
567
32
I tried pd.DataFrame but it gives row numbers i dont want that
The newline character n
prints a new line:
l = [12, 567, 32]
print('n'.join(str(x) for x in l))