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
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Вот сюда нужно будет в первой работе с гитом добавит свое ФИО

## ФИО
## Тютина Анастасия Антоновна

## Работа с репозиторием

Expand Down
27 changes: 22 additions & 5 deletions python/src/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
def summ(a: int, b: int) -> int:
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.

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

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?

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)



if __name__ == "__main__":
print("Hello world")
print(summ(3, 4))
def y(x):
y = ((math.log(a + x)) / ((a + x) ** 2))
return y


for x in frange(1.2, 4.2, 0.6):
a = 2.0
print(y(x))
print()
xrange = [1.16, 1.32, 1.47, 1.65, 1.93]
xlen = len(xrange)
for i in range(0, xlen):
x = xrange[i]
a = 2.0
print(y(x))