Download 133/solution/_reference.py from PRHW/loom-benchmark-mbpp: direct link, hf CLI and curl.
- Browser
- Download file 115 Bytes
-
https://huggingface.co/datasets/PRHW/loom-benchmark-mbpp/resolve/main/133/solution/_reference.py
- Command line
-
hf download hf://datasets/PRHW/loom-benchmark-mbpp/133/solution/_reference.py
-
curl -L -o _reference.py https://huggingface.co/datasets/PRHW/loom-benchmark-mbpp/resolve/main/133/solution/_reference.py
115 Bytes
| def sum_negativenum(nums): | |
| sum_negativenum = list(filter(lambda nums:nums<0,nums)) | |
| return sum(sum_negativenum) |