summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python/compito.py8
1 files 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)