a=['Allen','Tom'] b='{}, you have passed our interview and will soon become a member of our company.' for i in a: print(b.format(i)) a[1]='Andy' d='{}, welcome to join us!' for j in a: print(d.format(j))