Sum of the digits of n is substring of n: Difference between revisions

m
m (→‎{{header|Python}}: Extended test set to include 0)
Line 139:
'''Matches in [0..999]'''
 
limit = 1000
xs = list(
filter(
digitSumIsSubString,
(str(n) for n in range(0, 1000limit))
)
)
w = len(xs[-1])
 
print(f'{len(xs)} matches < 1000{limit}:\n')
print(
'\n'.join(
9,659

edits