Easy
Turn Negatives Into Zero
Read integers and print a list where negatives become 0, using
[x if x > 0 else 0 for x in a].Input
One line.
Output
A list.
Sample 1
Input
3 -1 4 -1 5
Output
[3, 0, 4, 0, 5]
Sample 2
Input
-7
Output
[0]
Output appears here