value = ['pes', 'kocka', 'andulka', 'kralik', 'had']
key = []
for i in value:
    key.append(i[1:])
animals_dict = dict(zip(key, value))
#print(animals_dict)

sorted_animals = []
for key in sorted(animals_dict):
    sorted_animals.append(animals_dict[key])
print(sorted_animals)








0f929daf3d7db5bcf9f675149ba791b5a46367d4
<mask token>

<mask token>
for i in value:
    key.append(i[1:])
<mask token>
for key in sorted(animals_dict):
    sorted_animals.append(animals_dict[key])
print(sorted_animals)

value = ['pes', 'kocka', 'andulka', 'kralik', 'had']
key = []
for i in value:
    key.append(i[1:])
animals_dict = dict(zip(key, value))
sorted_animals = []
for key in sorted(animals_dict):
    sorted_animals.append(animals_dict[key])
print(sorted_animals)

value = ['pes', 'kocka', 'andulka', 'kralik', 'had']
key = []
for i in value:
    key.append(i[1:])
animals_dict = dict(zip(key, value))
#print(animals_dict)

sorted_animals = []
for key in sorted(animals_dict):
    sorted_animals.append(animals_dict[key])
print(sorted_animals)







