-
Notifications
You must be signed in to change notification settings - Fork 457
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
Lesson3 #881
base: master
Are you sure you want to change the base?
Lesson3 #881
Conversation
fibb_par.append(fibb1) | ||
for fibb in range(2, m): | ||
fibb1, fibb2 = fibb2, fibb1 + fibb2 | ||
if fibb >= n: |
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.
по условию имелось ввиду что n - это индекс элкмента в ряду
|
||
sort_to_max([2, 10, -12, 2.5, 20, -11, 4, 4, 0]) | ||
|
||
# Задача-3: | ||
# Напишите собственную реализацию стандартной функции filter. | ||
# Разумеется, внутри нельзя использовать саму функцию filter. | ||
def func(x): | ||
return res_func |
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.
что-то мне подсказывает что тут программа упадет
result_list = [] | ||
for i in range(len(par2)): | ||
if func(x) == true: | ||
result_list.append(res_func) |
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.
хм, кажется функция filter возвращает список элементов, а не список с функциями...
def filter_clone(res_func, par2): | ||
result_list = [] | ||
for i in range(len(par2)): | ||
if func(x) == true: |
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.
а откуда взялся x?
Не совсем смог разобраться с заданием 3 части normal