-
Notifications
You must be signed in to change notification settings - Fork 23
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
base: Pavel_Intalov
Are you sure you want to change the base?
Pavel intalov #25
Changes from 3 commits
5f14e00
f381c78
9a8a9bc
94f4605
e55f8d6
f3cae10
c681d0c
d287661
0b3bb64
0c2ad10
72a6d6d
1838c44
19f55fe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ mypy = "*" | |
flake8 = "*" | ||
|
||
[requires] | ||
python_version = "3.9" | ||
python_version = "3.10" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import math | ||
from re import X | ||
from tkinter import Y | ||
Comment on lines
+2
to
+3
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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) |
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
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Это хорошо бы в функцию обернуть |
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.
не забывайцте добавлять расширение файла - .py