lst = ['daba', 'Aba', 'Haba'] lst.sort(str.lower)#lst.sort(key=str.lower)
Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: must use keyword argument for key function