MCPcopy Create free account
hub / github.com/geekcomputers/Python / four_digit_combinations

Function four_digit_combinations

four_digit_num_combination.py:5–11  ·  view source on GitHub ↗

print out all 4-digit numbers in old way

()

Source from the content-addressed store, hash-verified

3
4# ALL the combinations of 4 digit combo
5def four_digit_combinations():
6 """print out all 4-digit numbers in old way"""
7 numbers = []
8 for code in range(10000):
9 code = str(code).zfill(4)
10 print(code)
11 numbers.append(code)
12
13
14# Same as above but more pythonic

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected