Python Print Separator (Tab Separated)

August 3, 2019
print('col1', 'col2', 'col3', sep='\t')

or

row = ['col1', 'col2', 'col3']
print(*row, sep='\t')

Output

col1    col2    col3
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.