Skip to content

Commit b3650de

Browse files
authored
Update nDigitNumberCombinations.py
1 parent 9f7403a commit b3650de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nDigitNumberCombinations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# ALL the combinations of n digit combo
22
def nDigitCombinations():
33
try:
4-
pow = 10**n
4+
npow = 10**n
55
numbers=[]
6-
for code in range(pow):
6+
for code in range(npow):
77
code=str(code).zfill(n)
88
numbers.append(code)
99
except:

0 commit comments

Comments
 (0)