Skip to content

Conversation

@kalenikai
Copy link

It's addition files for Lesson 1


print(check_1(lst))
print(check_2(lst))
print(check_3(lst))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Александр, а где здесь решение?
его нет

import random as rnd
int_list = [rnd.randint(0, 1000) for p in range(0, 20)]
print(int_list)
print(sorted(int_list)[0])
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

нарушение пеп по импортам
не описана, где какая сложность

dict_company = {'Yarl' : 3460, 'Quark' : 4000, 'Cityland' : 2690, 'Ion': 1000, 'Drink': 8000, 'Drank' : 34000, 'Cross' : 4500}
values = sorted(dict_company.values())[-4 : -1]
[dict_profit.update({el}) for el in dict_company.items() for val in values if el[1] == val]
print(dict_profit)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не описана где какая сложность

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants