namelist = ['Allen', 'Tom'] for names in namelist: print("{}, you have passed our interview and will soon become a member of our company.".format(names)) namelist.remove('Tom') namelist.append('Andy') for names in namelist: print("{}, welcome to join us!".format(names))