Skip to content

Commit 4ffa02e

Browse files
authored
minor fix to function oneLineCombinations()
I ran the second function and it only cycled from 0000 to 0999 as the range in the program is range(1000). Doesn't really need fixing, as people will understand that the range in the code needs an extra 0, but I would like to submit this change of range to range(10000) just for the sake of completion.
1 parent 3bbb74a commit 4ffa02e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

4 Digit Number Combinations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ def FourDigitCombinations():
88

99
# Same as above but more pythonic
1010
def oneLineCombinations():
11-
numbers = list(map(lambda x: str(x).zfill(4), [i for i in range(1000)]))
11+
numbers = list(map(lambda x: str(x).zfill(4), [i for i in range(10000)]))
1212
print(numbers)

0 commit comments

Comments
 (0)