题目的意思就是把输出的姓名控制到五位数,其中名只取第一个字母并改为小写,姓改为大写。如果输出不足五位数,那后面加上星号(※)
这个是我写的代码,只能来计算这个
a = input("Please enter your first name: ")
b = input("Please enter your surname: ")
full_name = a +b
space_index = len(a)-1
first_name = full_name[:space_index]
last_name = full_name[space_index+1:space_index+5].upper()
first_letter = first_name[0].lower()
initialled_name = first_letter+last_name
print(initialled_name)
但是这个应该怎么去加代码呢