Sum of the digits of n is substring of n: Difference between revisions
Sum of the digits of n is substring of n (view source)
Revision as of 14:25, 14 April 2021
, 3 years ago→{{header|Python}}
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,
)
)
w = len(xs[-1])
print(f'{len(xs)} matches <
print(
'\n'.join(
|