diff options
Diffstat (limited to 'progs/a703.py')
-rw-r--r-- | progs/a703.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/progs/a703.py b/progs/a703.py new file mode 100644 index 0000000..d0b9171 --- /dev/null +++ b/progs/a703.py @@ -0,0 +1,2 @@ +def sum_three_smallest_nums(lst):
+ return sum(sorted([x for x in lst if x > 0])[:3])
\ No newline at end of file |