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.")

offer_list[offer_list.index('Tom')] = 'Andy'

for j in offer_list:

print(f"{j}, welcome to join us!")