From 46ab41922a6c8c51da91443cdf62bf250838f7a5 Mon Sep 17 00:00:00 2001
From: pasi kanto <68000803+Pkanto@users.noreply.github.com>
Date: Tue, 15 Sep 2020 12:54:26 +0300
Subject: [PATCH] tehty kaikki samaan

---
 harj_10/__pycache__/utils.cpython-38.pyc | Bin 0 -> 799 bytes
 harj_10/tester.py                        |  12 ++++++++++++
 harj_10/utils.py                         |  15 +++++++++++++++
 3 files changed, 27 insertions(+)
 create mode 100644 harj_10/__pycache__/utils.cpython-38.pyc
 create mode 100644 harj_10/tester.py
 create mode 100644 harj_10/utils.py

diff --git a/harj_10/__pycache__/utils.cpython-38.pyc b/harj_10/__pycache__/utils.cpython-38.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..29700648978416476d2c5afc50321b299596ca8b
GIT binary patch
literal 799
zcmZ8fy>1&Z4A#$G>;z70paD`Ki-#<?6z&=nMVd@S0WU=s<AAFyU3(Y%bO-&UN#IP$
zp6BS^C+K5n?UYyOR8qFnG!#gY6!noJb+)^^Lx8gTFU2QH$Zs^B5(DEH*dBsVMA17k
zC5kByJ5`BFVP|Sf^<d|!|Cwal5+eU2#5e`E0}u`{ZYc#Uh-DN15_}(j{cJ|w)eHNk
z)?eF<hO{%ac0Y*0yHWf(kw^KNEsf1PVasAX9_RDcFMQrzxvJIc&6SlC7s8#3W}a8V
zoELA$`3kzb3fs17zZaMT-byTj6KWEWGU{jpp^hAj?t`)<OZplMrjuAq#sU?A&i<8W
zIE011^)qLLbO^bD?}0AyctfZ^!Vkef_<gcu`_P+%RbL)3XqAhb6!k3-fy(D8d*Y%r
z;#-MXHW_iG68Mp@90WWCw#OhGaTMopOK(;>i#m;d9(9IQ?Lk!sL?wIVhC8-|llA1%
z$@Pm5T8q&fM&P_X8ePAN_N>%a=urjZ6W|;~XCvGktOo_DGafh`hP2k5cLoQMCDYy-
zXPU;F(==WQ^z!+8hf*wLAzN*I)496U_*ff1F&)G;qy|6LBunCC4R*$0Ky*LB!x^mS
S_O5A_UzG3Tx4=&KIj+AX^P1ZL

literal 0
HcmV?d00001

diff --git a/harj_10/tester.py b/harj_10/tester.py
new file mode 100644
index 0000000..856dec2
--- /dev/null
+++ b/harj_10/tester.py
@@ -0,0 +1,12 @@
+from utils import show_info
+from utils import average
+from utils import subtract
+from utils import calc_consumption
+
+show_info() 
+
+print(average(10,20,30))
+
+print(subtract(100,10))
+
+calc_consumption()
\ No newline at end of file
diff --git a/harj_10/utils.py b/harj_10/utils.py
new file mode 100644
index 0000000..33bbc6d
--- /dev/null
+++ b/harj_10/utils.py
@@ -0,0 +1,15 @@
+def show_info():
+    print("I´m utils.info")
+
+def subtract(a,b):
+    return a-b
+
+def average(a,b,c):
+    return (a+b+c)/3
+
+def calc_consumption():
+    kulutus= int(input("Anna kulutus: "))
+    hinta= int(input("Anna bensan hinta: "))
+    matka = int(input("Anna matka: "))
+    x= kulutus*hinta/matka*100
+    print(x)
\ No newline at end of file
-- 
GitLab