I have a loop script that makes a list of strings from a file using the line.split() function, although I want to tag each string with two other strings that form during the loop.
How can I concatenate each string formed from the line.split() function to two other strings?
This is the relevant part of my code
out = str()
for fileName in os.listdir(os.getcwd()):
if line.startswith('Group:'):
y = line.split()
t_group = y[]
group = t_group
if line.startswith("F:"):
y = line.split()
#this is where the list of strings is formed
t_out = group + " " + ___ # The underscores are a placeholder for each string in the list that I want to add
out.append(t_out)
line?