Skip to content
Snippets Groups Projects
Commit 85383e84 authored by Onni Maidell's avatar Onni Maidell
Browse files

Upload New File

parent 0c09a73e
No related branches found
No related tags found
No related merge requests found
# kirjanpito.py
def alkusaldo() -> float:
"""
Pyytää käyttäjää syöttämään alkusaldon (input).
"""
def menot(tapahtuma: str, summa: float):
"""
Lisää käyttäjän menot ohjelmaan (input).
"""
def tulot(tapahtuma: str, summa: float):
"""
Lisää käyttäjän tulot ohjelmaan (input).
"""
def tapahtumat() -> tuple[list, float]:
"""
Näyttää kaikki tulot ja menot + laskee nykyisen saldon.
"""
def hakusana(hakusana: str) -> list:
"""
Voi hakea tapahtumpia hakusanalla (input).
"""
def summa(raja: float) -> list:
"""
Näyttää tapahtumat, joiden summa ylittää määrätyn rajan.
"""
def tallenna(tiedoston_nimi: str):
"""
Tallentaa ohjelman tiedot tiedostoon.
"""
def lataa(tiedoston_nimi: str):
"""
Lataa tiedot tiedostosta.
"""
def kayttoliittyma():
"""
Käyttöliittymä, jonka avulla käyttäjä pystyy käyttämään ohjelmaa.
Esim:
1: Lisää alkusaldo
2: Lisää meno
jne...
"""
#Ohjelma päättyy
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment