БГ
Size: a a a
БГ
V
БГ
py3
iterable = [300, 2, 12, 44, 1, 1, 4, 10, 7, 1, 78, 123, 55]
release = (item for index, item in enumerate(iterable[1:]) if item>iterable[index])
print ([*release])
[12, 44, 4, 10, 78, 123]
БГ
БГ
БГ
V
V
БГ
b
py3
iterable = [300, 2, 12, 44, 1, 1, 4, 10, 7, 1, 78, 123, 55]
release = (item for index, item in enumerate(iterable[1:]) if item>iterable[index])
print ([*release])
[12, 44, 4, 10, 78, 123]
БГ
БГ
b
БГ
b
python3
from collections import OrderedDict
od={'обед':'чай', 'завтрак':'кофе', 'ужин':'компот'}
od=OrderedDict(sorted(od.items(), key= lambda x:x[0]))
print(od)
OrderedDict([('завтрак', 'кофе'), ('обед', 'чай'), ('ужин', 'компот')])К
b
A
К
A