I have written a python code to print names and ages in different columns. The names and ages are stored in separate lists. The issue is, data gets aligned improperly while printing. I want data to be aligned properly in every column.Please suggest how do i modify the code to get proper output.
name=['pav sunny','sham sunny','mala','shalu']
age=[25,56,52,50]
print('''NAME\t\tAGE\n''')
for i in range(len(name)):
print(name[i],'\t\t',age[i])