import os

f = open("test.txt" "w")

list1 = ["Shoes", "Socks", "Gloves"]
quantity = [10, 5, 32]

f.write("{:<10} {:10} {:10}\n".format("S/N", "Items", "Quantity"))

for item in list1:
    f.write("{:<10} {:10} {:10}\n".format("S/N", "Items", "Quantity") + "\n")

f.close()
e288634e1118dbef9a48623b994fcadc5879a705
<mask token>

<mask token>
f.write('{:<10} {:10} {:10}\n'.format('S/N', 'Items', 'Quantity'))
for item in list1:
    f.write('{:<10} {:10} {:10}\n'.format('S/N', 'Items', 'Quantity') + '\n')
f.close()

<mask token>
f = open('test.txtw')
list1 = ['Shoes', 'Socks', 'Gloves']
quantity = [10, 5, 32]
f.write('{:<10} {:10} {:10}\n'.format('S/N', 'Items', 'Quantity'))
for item in list1:
    f.write('{:<10} {:10} {:10}\n'.format('S/N', 'Items', 'Quantity') + '\n')
f.close()

import os
f = open('test.txtw')
list1 = ['Shoes', 'Socks', 'Gloves']
quantity = [10, 5, 32]
f.write('{:<10} {:10} {:10}\n'.format('S/N', 'Items', 'Quantity'))
for item in list1:
    f.write('{:<10} {:10} {:10}\n'.format('S/N', 'Items', 'Quantity') + '\n')
f.close()

import os

f = open("test.txt" "w")

list1 = ["Shoes", "Socks", "Gloves"]
quantity = [10, 5, 32]

f.write("{:<10} {:10} {:10}\n".format("S/N", "Items", "Quantity"))

for item in list1:
    f.write("{:<10} {:10} {:10}\n".format("S/N", "Items", "Quantity") + "\n")

f.close()