nowcoder-python/NP/NP16.py

22 lines
485 B
Python
Raw Normal View History

2022-10-26 09:36:37 +08:00
#!/usr/bin/env python3
# @author 轩辕龙儿
# @date 2022/10/26
# @file NP16.py
2022-10-26 10:02:04 +08:00
def solution():
nameList = ["Allen", "Tom"]
for i in nameList:
print(
"{}, you have passed our interview and will soon become a member of our company.".format(
i
)
2022-10-26 09:36:37 +08:00
)
2022-10-26 10:02:04 +08:00
nameList.remove("Tom")
nameList.append("Andy")
for i in nameList:
print("{}, welcome to join us!".format(i))
if __name__ == "__main__":
solution()