PYTHON_TASKS Telegram 2713
Что выведет код?
values = [8, 3, 1]
group = {2, 7}
def f(values, group):
count = 0
def g(x):
nonlocal count
if x in group:
count += 1
return (0, x)
return(1, x)
values.sort(key=g)
return count
count = f(values, group)
print(count)



tgoop.com/python_tasks/2713
Create:
Last Update:

Что выведет код?

values = [8, 3, 1]
group = {2, 7}
def f(values, group):
count = 0
def g(x):
nonlocal count
if x in group:
count += 1
return (0, x)
return(1, x)
values.sort(key=g)
return count
count = f(values, group)
print(count)

BY Python Tasks & ML | Задачи по питону и машинному обучению


Share with your friend now:
tgoop.com/python_tasks/2713

View MORE
Open in Telegram


Telegram News

Date: |

Users are more open to new information on workdays rather than weekends. Telegram has announced a number of measures aiming to tackle the spread of disinformation through its platform in Brazil. These features are part of an agreement between the platform and the country's authorities ahead of the elections in October. With the administration mulling over limiting access to doxxing groups, a prominent Telegram doxxing group apparently went on a "revenge spree." Co-founder of NFT renting protocol Rentable World emiliano.eth shared the group Tuesday morning on Twitter, calling out the "degenerate" community, or crypto obsessives that engage in high-risk trading. ZDNET RECOMMENDS
from us


Telegram Python Tasks & ML | Задачи по питону и машинному обучению
FROM American