Question: Q5 Write a Program 10 Points Write a function called only_negative (vals), which takes in a list of integers, and returns a list of

Q5 Write a Program 10 Points Write a function called only_negative (vals),

Q5 Write a Program 10 Points Write a function called only_negative (vals), which takes in a list of integers, and returns a list of only the integers in the original that are negative. Examples: >>> only_negative ([]) [] >>> only_negative ([192, -32, 89, 32, 9, 100, 99, 0]) [-32] >>> only negative ([20, 4923, -7, 82, 10, -242, 55]) [-7, -242] Enter your answer here f4 Please select file(s) Select file(s) f5 f6 10 f7 fg $ 4 % 5 6 & 7 8 ? fg & 144 f10 44F Cloudy ^ 114 g D f11 I f12

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!