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

Pavel intalov #25

Open
wants to merge 13 commits into
base: Pavel_Intalov
Choose a base branch
from
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: 3.10

- name: Install dependencies with pipenv
run: |
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ mypy = "*"
flake8 = "*"

[requires]
python_version = "3.9"
python_version = "3.10"
2 changes: 1 addition & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions lab1/labIntal1
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import math
Copy link
Contributor Author

Choose a reason for hiding this comment

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

не забывайцте добавлять расширение файла - .py

from re import X
from tkinter import Y
Comment on lines +2 to +3
Copy link
Contributor Author

Choose a reason for hiding this comment

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

вот эти 2 импорта не нужны

def calc(x: float) float:
return (math.asin(x)*4+math.acos(x)*6)*1/7
def task_a(xn,xkm,dx):
x=xn
y=[]
while x <=xk:
y_tmp=calc(x)
y.append(y_tmp)
x += dx
return (y)
def task_b(x):
y=[]
for item in x:
y.append(calc(item))
if __name__ = "__main__":
y= task_a(0.22,0.92,0.14)
print (y)
y=task_b([0.1,0.35,0.4,0.55,0.6])
print (X)
8 changes: 8 additions & 0 deletions zachot/zachot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
#заменил for k in b
# if k in a
#c.append(k)
#print(c)
result = list(set(a) & set(b))
print(result)
Comment on lines +1 to +8
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Это хорошо бы в функцию обернуть