tgoop.com/python_tasks/2711
Create:
Last Update:
Last Update:
Что выведет код?
def f(x):
if x in group:
return (0, x)
return (1, x)
group = {5, 6, 7}
values = {4, 9, 7, 8, 3, 5}
print(*sorted(values, key=f))
BY Python Tasks & ML | Задачи по питону и машинному обучению
Share with your friend now:
tgoop.com/python_tasks/2711