Skip to content
Snippets Groups Projects
Commit 46ab4192 authored by pasi kanto's avatar pasi kanto
Browse files

tehty kaikki samaan

parent 9cf297f8
No related branches found
No related tags found
No related merge requests found
File added
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
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment