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

Tjutina anastasija antonovna #138

Open
wants to merge 7 commits into
base: Tjutina_Anastasija_Antonovna
Choose a base branch
from

Conversation

TyutinaAnastasia
Copy link

No description provided.

return a + b
import math
i = 0
def frange(start, stop, step):
Copy link
Contributor

Choose a reason for hiding this comment

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

странное название для функции

def frange(start, stop, step):
i = start
while i < stop:
yield i
Copy link
Contributor

Choose a reason for hiding this comment

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

Зачем вам yield?

Comment on lines 3 to 7
def frange(start, stop, step):
i = start
while i < stop:
yield i
i += step
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
def frange(start, stop, step):
i = start
while i < stop:
yield i
i += step
def task_a(start, stop, step):
res = []
i = start
while i < stop:
y_val = y(i)
y.append(y_val)
i += step
return(y)

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