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