โ Back to Loops
Question 107
filter: Keep Positive Numbers
filter: Keep Positive Numbers
Usefilterto keep only the numbers greater than 0, then print them joined by", ". Note that 0 is not positive. Expected output: 5, 8, 2
Expected Output:
5, 8, 2
Topics:
Loops
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (clog, fn, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.