summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorSanto Cariotti <sancn@live.com>2017-04-30 19:12:54 +0200
committerSanto Cariotti <sancn@live.com>2017-04-30 19:12:54 +0200
commit1e82950a94ccaf4909611ca92fbe5c1de60b8533 (patch)
treebd427f6c1db0b4e3fe661b3afd5bf4bde0f6f4ed /python
parentc05a6582fb9a6bd6aa8ea462c77213b9215b470a (diff)
Init v in a line
Diffstat (limited to 'python')
-rw-r--r--python/conversioneBinariaDec.py5
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: ')