Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Lesson3 #881

wants to merge 3 commits into from

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 - это индекс элкмента в ряду


sort_to_max([2, 10, -12, 2.5, 20, -11, 4, 4, 0])

# Задача-3:
# Напишите собственную реализацию стандартной функции 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