Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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), 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started