summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorSanto Cariotti <sancn@live.com>2017-05-15 18:04:38 +0200
committerSanto Cariotti <sancn@live.com>2017-05-15 18:04:38 +0200
commitf3620840e565be03afc2623c86aeb29a29fa0cb6 (patch)
tree327eda14d40475f385f5829f3ce88db5b98301a2 /python
parentb8e30c8bb04c11ccaa31b6e89a452ee66d372b0b (diff)
parent098272b98db4007aee578478fe07077df9525c9b (diff)
Merge remote-tracking branch 'origin/master'
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)