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