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

Function one_line_combinations

four_digit_num_combination.py:15–18  ·  view source on GitHub ↗

print out all 4-digit numbers

()

Source from the content-addressed store, hash-verified

13
14# Same as above but more pythonic
15def one_line_combinations():
16 """print out all 4-digit numbers"""
17 numbers = [str(i).zfill(4) for i in range(10000)]
18 print(numbers)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected