From 1e82950a94ccaf4909611ca92fbe5c1de60b8533 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sun, 30 Apr 2017 19:12:54 +0200 Subject: Init v in a line --- python/conversioneBinariaDec.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'python') diff --git a/python/conversioneBinariaDec.py b/python/conversioneBinariaDec.py index 7590736..2ff1bb6 100644 --- a/python/conversioneBinariaDec.py +++ b/python/conversioneBinariaDec.py @@ -1,10 +1,7 @@ from math import pow b = 32 -v = [] - -for i in range(b): - v.append(0) +v = [0 for i in range(b)] str = input('Stringa: ') -- cgit v1.2.3-18-g5258