Skip to content

It's addition files for Lesson 1#598

Open
kalenikai wants to merge 1 commit intoDmitryChitalov:masterfrom
kalenikai:Lesson_1_add
Open

It's addition files for Lesson 1#598
kalenikai wants to merge 1 commit intoDmitryChitalov:masterfrom
kalenikai:Lesson_1_add

Conversation

@kalenikai
Copy link
Copy Markdown

It's addition files for Lesson 1

Comment thread task_1.py

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

Choose a reason for hiding this comment

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

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

Comment thread task_2.py
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
Copy Markdown
Owner

Choose a reason for hiding this comment

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

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

Comment thread task_3.py
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
Copy Markdown
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