Skip to content
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 .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"version": "0.2.1",
"configurations": [
{
"name": "Python: Current File",
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 README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Tprogramming_2022_zaochn

### Установка виртуального окружения

Ковязин Ян Алексеевич
```shell
pip install pipenv
```
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
print("Hello world")
print("Ковязин Ян Алексеевич")
a = 1
width = 5
height = 7
Expand Down
23 changes: 23 additions & 0 deletions za4et_2022/file_3
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import files
q = files.q
print (list(q))
a= len (q)
print ("всего символов" + a)
c=0
i = 0
a=int(a)
b=a-1
a=a/2
а= round (a)
a=int(float(a))
for i in range(0, a, 1):
if q[i] == q[b]:
c=c+0
b=b-1
else :
c=c+1
b=b-1
if c >= 1:
print ("не является палиндромом" + "end")
else:
print ("является палиндромом" + "end")
10 changes: 10 additions & 0 deletions za4et_2022/file_3,version_2
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
e= "1234554321"
r=e/round(len(e))
q=e[:r]
w=e[r:]
q=list(q)
w=list(w)
if q.sort() == w.sort():
print('Списки идентичны')
else:
print('Списки не идентичны')
1 change: 1 addition & 0 deletions za4et_2022/files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
q=["adda"]
10 changes: 10 additions & 0 deletions zada4i_1 primer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import math

def calc(a:float, b: float, x: float) -> float:
chisl = (math.sin(a + b*x))**3.5
znamen = 1 + math.cos(abs(math.log(a + b*x, 2)))
y = chisl / znamen
return y

if __name__ == "__main__":
print(calc(2.5, 4.6, 1.15))