Skip to content

Conversation

@inf0rcer
Copy link

@inf0rcer inf0rcer commented Oct 6, 2019

Не совсем смог разобраться с заданием 3 части normal

fibb_par.append(fibb1)
for fibb in range(2, m):
fibb1, fibb2 = fibb2, fibb1 + fibb2
if fibb >= n:

Choose a reason for hiding this comment

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

по условию имелось ввиду что n - это индекс элкмента в ряду

# Напишите собственную реализацию стандартной функции filter.
# Разумеется, внутри нельзя использовать саму функцию filter.
def func(x):
return res_func

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)

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:

Choose a reason for hiding this comment

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

а откуда взялся x?

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