Question: use python In this section, you are going to recreate a function called make_new_list which takes a list called data_list as its input. This function
use python
In this section, you are going to recreate a function called make_new_list which takes a list called data_list as its input. This function will use is positive and is_even to mimic the task from A2-Q13. That is, this function will check each value in data_list to see if they are even or odd and whether they are positive or negative If they are both positive and even, encode this as the number 1 . If they are both negative and odd, encode this as the the number 1 . Otherwise, encode this as the number 0 Store the result for each value into a list called output and return it
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
