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 all 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
34 changes: 34 additions & 0 deletions python/src/codewrs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
def even_or_odd(number):
if number % 2 == 0:
return "even"
else:
return "odd"


def count_sheep(sheep):
count = 0
for i in sheep:
if i == True:
count += 1
return count


def count_monkey(n):
res = []
for i1 in range(1, n + 1):
res.append(i1)
return res


def paper(n, m):
if n > 0 and m > 0:
return n*m
else:
return 0


def hero(dragon, bullet):
if bullet >= dragon*2:
return True
else:
return False
28 changes: 25 additions & 3 deletions python/src/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,29 @@
def summ(a: int, b: int) -> int:
def summ(a: int, b:int) -> int:
return a + b


if __name__ == "__main__":
print("Hello world")
if __name__ == "_main_":
print("Hello World")
print(summ(3, 4))


import math
# задача под А

def y(x):
y = ((math.log(a + x))/((a + x) ** 2))
return y


x = 1.2
X = 4.2
while x < X:
a = 2.0
print(y(x))
x += 0.6

# задача под B
A = [1.16, 1.32, 1.47, 1.65, 1.93]
a = 2.0
for x in A:
print (y(x))