with open('file.txt') as file:
    data = file.read()
names = data.split()
new = open('name_subj.txt','x')

for name in names:
    for a in range(len(names)):
        new.writelines(f"{name} Programming Fundamental lab,Programming Fundamental,English Composition,Calculus-1")
    new.write('\n')
    

f1e2ed183adc57bd6960d992f8841720ede22344
<mask token>

with open('file.txt') as file:
    data = file.read()
<mask token>
for name in names:
    for a in range(len(names)):
        new.writelines(
            f'{name} Programming Fundamental lab,Programming Fundamental,English Composition,Calculus-1'
            )
    new.write('\n')

with open('file.txt') as file:
    data = file.read()
names = data.split()
new = open('name_subj.txt', 'x')
for name in names:
    for a in range(len(names)):
        new.writelines(
            f'{name} Programming Fundamental lab,Programming Fundamental,English Composition,Calculus-1'
            )
    new.write('\n')

with open('file.txt') as file:
    data = file.read()
names = data.split()
new = open('name_subj.txt','x')

for name in names:
    for a in range(len(names)):
        new.writelines(f"{name} Programming Fundamental lab,Programming Fundamental,English Composition,Calculus-1")
    new.write('\n')
    
