-
Notifications
You must be signed in to change notification settings - Fork 73
Homework les 4 #129
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
base: master
Are you sure you want to change the base?
Homework les 4 #129
Conversation
| print(f'заработная плата сотрудника {res}') | ||
| except ValueError: | ||
| return print('Not a number') | ||
| sal() |
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.
не выполнено
Во время выполнения расчёта для конкретных значений необходимо запускать скрипт с параметрами.
| my_new_list = [el for num, el in enumerate(my_list) if my_list[num - 1] < my_list[num]] | ||
| print(f'Исходный список {my_list}') | ||
| print(f'Новый список {my_new_list}') | ||
|
|
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.
выполнено
| my_list = [2, 2, 2, 7, 23, 1, 44, 44, 3, 2, 10, 7, 4, 11] | ||
| my_new_list = [el for el in my_list if my_list.count(el) == 1] | ||
| print(my_new_list) | ||
|
|
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.
выполнено
|
|
||
| # Задание3 | ||
| print(f'Числа от 20 до 240 кратные 20 или 21 - {[el for el in range(20, 241) if el % 20 == 0 or el % 21 == 0]}') | ||
|
|
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.
выполнено
|
|
||
| # Задание7 | ||
| from itertools import count | ||
| from math import factorial |
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.
все импорты должны идти в начале модуля
Have some question about GitHab )))