From 098272b98db4007aee578478fe07077df9525c9b Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sat, 13 May 2017 14:54:02 +0200 Subject: fixed some things --- python/compito.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/python/compito.py b/python/compito.py index ecb08ba..94c380c 100644 --- a/python/compito.py +++ b/python/compito.py @@ -3,8 +3,10 @@ class puntiVedita: citta = '' entrate = uscite = 0 + pV = [puntiVedita() for i in range(5)] + def carica(): pV[0].citta = "Catania"; pV[0].entrate = 380; @@ -23,7 +25,7 @@ def carica(): pV[4].uscite = 175; -def ord(): +def ordx(): s = True t = puntiVedita() last = 4 @@ -65,7 +67,7 @@ for i in pV: if not util(i): print("Attenzione -> {}".format(i.citta)) -ord() +ordx() for i in pV: - print(i.entrate) \ No newline at end of file + print(i.entrate) -- cgit v1.2.3-18-g5258