dict = {'car': 300, 'tv': 220, 'k': 400}
t = list(dict.items())
print(t)
for key, value in t:
    print(key, value)
l = list()
for key, value in dict.items():
    l.append((value, key))
print(l)
l.sort()
print(l)

6d938dfe7a55b951049a0a20cbd29e302cd5d81b
<mask token>

<mask token>
print(t)
for key, value in t:
    print(key, value)
<mask token>
for key, value in dict.items():
    l.append((value, key))
print(l)
l.sort()
print(l)

dict = {'car': 300, 'tv': 220, 'k': 400}
t = list(dict.items())
print(t)
for key, value in t:
    print(key, value)
l = list()
for key, value in dict.items():
    l.append((value, key))
print(l)
l.sort()
print(l)
