diff options
author | Santo Cariotti <sancn@live.com> | 2017-04-30 19:12:54 +0200 |
---|---|---|
committer | Santo Cariotti <sancn@live.com> | 2017-04-30 19:12:54 +0200 |
commit | 1e82950a94ccaf4909611ca92fbe5c1de60b8533 (patch) | |
tree | bd427f6c1db0b4e3fe661b3afd5bf4bde0f6f4ed | |
parent | c05a6582fb9a6bd6aa8ea462c77213b9215b470a (diff) |
Init v in a line
-rw-r--r-- | python/conversioneBinariaDec.py | 5 |
1 files changed, 1 insertions, 4 deletions
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: ') |