Discuss / Python / 作业

作业

Topic source

一库大神

#1 Created at ... [Delete] [Delete and Lock User]

第一题
def normalize(name):

return name[0].upper() + (name[1:].lower())

L1 = ['adam', 'LISA', 'barT']

L2 = list(map(normalize, L1))

print(L2)


  • 1

Reply