I'm trying to make a dictionary so that each letter of the alphabet has its own sequence number, the problem is that the unhashable type: 'list'
str1="абвгдеёжзийклмнопрстуфхцчшщъыьэюя" alf =[] for txt in str1: alf.append(txt) d = dict.fromkeys((([i for i in alf]),num for num in range(0,33))) print(d)
d = {chr(j) : i for i, j in enumerate(range(0x430, 0x450))}- greg zakharov