modified: content/posts/informatics/class-10g.mdx

modified:   content/posts/informatics/class-10v.mdx
main
joker 2 years ago
parent b2855ba7cc
commit 2ea60fb663
  1. 35
      content/posts/informatics/class-10g.mdx
  2. 27
      content/posts/informatics/class-10v.mdx

@ -1,6 +1,6 @@
---
title: Классная работа 10Г
excerpt: Все, что показывал в классе тут есть.
excerpt: Все, что показывал в классе тут.
date: '2023-11-09'
tags:
- Информатика
@ -93,3 +93,36 @@ def drive(v,t,s):
if s == 0:
return (float(t*v))
~~~
## Урок 15.11.23
~~~python
# main.py
from mylib import speed
f = 45
mas = [[5,0,67],[67,0,200],[43,0,45]]
summ = 0
for i in range(len(mas)):
summ = summ + speed(mas[i][0],mas[i][1],mas[i][2])
print(summ)
~~~
~~~python
# mylib.py
def speed(v,t,s):
summ = 0
if v == 0:
summ = (s/t)
if t == 0:
summ = (s/v)
if s == 0:
summ = (t*v)
return summ
~~~

@ -1,6 +1,6 @@
---
title: Классная работа 10В
excerpt: Все, что показывал в классе тут есть.
excerpt: Все, что показывал в классе тут.
date: '2023-11-09'
tags:
- Информатика
@ -87,3 +87,28 @@ def speed(v,t,s):
summ = (t*v)
return summ
~~~
## Урок 15.11.23
~~~python
# main.py
from mylib import strength_elasticity
mas = [[0, 200, 45], [56, 0, 8], [234, 14, 0]]
for i in range(len(mas)):
print(strength_elasticity(mas[i][0],mas[i][1],mas[i][2]))
~~~
~~~python
# mylib.py
def strength_elasticity(f, x, k):
if f == 0:
return k*x
if x == 0:
return f/k
if k == 0:
return f/x
~~~
Loading…
Cancel
Save