关于#python#的问题,如何解决?

其中提示输入和输出结果的两句提示语请使用如下形式:
Please input the name:
Who has the nice number?

img


dic = {"xiaoyun": "88888", "xiaohong": "5555555", "xiaoteng": "11111", "xiaoyi": "1234321", "xiaoyang": "1212121"}
name = input("Please input the name:\n")
while name not in dic.keys():
    print("Enter the name again.")
    name = input("Please input the name:\n")
print(dic[name])
print("Who has the nice number?")
names = []
for name in dic.keys():
    if len(dic[name]) <= 5:
        names.append(name)
names.sort()
for name in names:
    print(name)