-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ДЗ1 #125
base: master
Are you sure you want to change the base?
ДЗ1 #125
Conversation
@@ -14,12 +14,30 @@ | |||
|
|||
""" | |||
|
|||
def actyvity(age): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
опечатка, переменные и названия функций желательно на правильном английском языке писать
{'product': 'Samsung Galaxy 21', 'items_sold': [343, 390, 238, 437, 214, 494, 441, 518, 212, 288, 272, 247]}, | ||
] | ||
|
||
for i in range(len(phone)): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
здесь лучше использовать конструкцию enumerate for i, phone in enumerate(phone):
for i in range(len(phone)): | ||
name = phone[i]['product'] | ||
summ = 0 | ||
for sale_one_model in phone [i] ['items_sold']: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
phone [i] ['items_sold'] - лишнии пробелы
Пробую свой первый PR