FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Lesson3 by inf0rcer · Pull Request #881 · GeekBrainsTutorial/Python_lessons_basic · GitHub

Repository navigation

Lesson3 - #881

Open
inf0rcer wants to merge 3 commits into
GeekBrainsTutorial:masterfrom
inf0rcer:lesson3
Open

inf0rcer wants to merge 3 commits into
GeekBrainsTutorial:masterfrom
inf0rcer:lesson3

Conversation

inf0rcer commented Oct 6, 2019

Copy link
Copy Markdown

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

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

что-то мне подсказывает что тут программа упадет

result_list = []
for i in range(len(par2)):
if func(x) == true:
result_list.append(res_func)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

хм, кажется функция filter возвращает список элементов, а не список с функциями...

def filter_clone(res_func, par2):
result_list = []
for i in range(len(par2)):
if func(x) == true:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL