summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorSanto Cariotti <sancn@live.com>2017-05-13 14:54:02 +0200
committerGitHub <noreply@github.com>2017-05-13 14:54:02 +0200
commit098272b98db4007aee578478fe07077df9525c9b (patch)
tree6eb0fc67951eecff2b6f66b2f81709127f5085be /python
parent574089e495b91c4090864abba7091eac323f11ca (diff)
fixed some things
Diffstat (limited to 'python')
-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)