#This is a program that generates usernames
from random import randint
usernames=[]
for i in range (5):
firstname=input("What is your first name?")
lastname=input("What is your last name?")
print("Your username is")
a=(str(randint(0,9)))+""+lastname[0:3].lower()+""+firstname[0].upper()+""+str((len)(lastname))
print(a)
usernames.append(a)
print(usernames)
我希望在最后打印的每个用户名之间只有一个空格。现在结果如下:[' 6kK1',' 8kK1',' 0kK1',' 3kK1',' 7kK1&# 39]。如何删除括号和逗号以及语音标记,以便每个用户名之间只有一个空格。感谢