From a9867f758889828123e3a29ae312d68666032fdb Mon Sep 17 00:00:00 2001 From: Tomasz Dwojak Date: Sun, 3 Jun 2018 10:04:16 +0200 Subject: [PATCH] task02 --- labs06/task02.py | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100755 labs06/task02.py diff --git a/labs06/task02.py b/labs06/task02.py new file mode 100755 index 0000000..9d96016 --- /dev/null +++ b/labs06/task02.py @@ -0,0 +1,54 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +def wczytaj_dane(): + pass + +def most_common_room_number(dane): + pass + +def cheapest_flats(dane, n): + pass + +def find_borough(desc): + dzielnice = ['Stare Miasto', + 'Wilda', + 'Jeżyce', + 'Rataje', + 'Piątkowo', + 'Winogrady', + 'Miłostowo', + 'Dębiec'] + pass + + +def add_borough(dane): + pass + +def write_plot(dane, filename): + pass + +def mean_price(dane, room_number): + pass + +def find_13(dane): + pass + +def find_best_flats(dane): + pass + +def main(): + dane = wczytaj_dane() + print(dane[:5]) + + print("Najpopularniejsza liczba pokoi w mieszkaniu to: {}" + .format(most_common_room_number(dane))) + + print("{} to najłądniejsza dzielnica w Poznaniu." + .format(find_borough("Grunwald i Jeżyce")))) + + print("Średnia cena mieszkania 3-pokojowego, to: {}" + .format(mean_price(dane, 3))) + +if __name__ == "__main__": + main()