-
Notifications
You must be signed in to change notification settings - Fork 79
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
base: Tjutina_Anastasija_Antonovna
Are you sure you want to change the base?
Tjutina anastasija antonovna #138
Conversation
python/src/main.py
Outdated
return a + b | ||
import math | ||
i = 0 | ||
def frange(start, stop, step): |
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.
странное название для функции
python/src/main.py
Outdated
def frange(start, stop, step): | ||
i = start | ||
while i < stop: | ||
yield i |
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.
Зачем вам yield?
python/src/main.py
Outdated
def frange(start, stop, step): | ||
i = start | ||
while i < stop: | ||
yield i | ||
i += step |
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.
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) |
No description provided.