diff options
Diffstat (limited to 'progs/unparsable_programs/a144.py')
-rw-r--r-- | progs/unparsable_programs/a144.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/progs/unparsable_programs/a144.py b/progs/unparsable_programs/a144.py new file mode 100644 index 0000000..7342998 --- /dev/null +++ b/progs/unparsable_programs/a144.py @@ -0,0 +1,3 @@ +def divisible_by_digits(startnum, endnum):
+ return [n for n in range(startnum, endnum+1) \
+ if not any(map(lambda x: int(x) == 0 or n%int(x) != 0, str(n)))]
\ No newline at end of file |