Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using PYTHON, implement the following function (see image below for details): max_new (xs,olds) given a list of integers xs, and a list of old integers
Using PYTHON, implement the following function (see image below for details):
max_new (xs,olds) given a list of integers xs, and a list of old integers olds, find and return the largest integer in xs that isn't also in olds. When there is no such number, return None >>> max_new([1,2,3,4,5,6],[5,6]) >>> max_new([1,5,3,4,6,2,4,4],[5,6]) # order doesn't matter. # make sure you handle negatives. >>> max_new([-5, -4, -3][-4]). -3 >>> ans = max_new ((1,1,1,1,1],[1]) >>> print (ans) None # long way to show that we got back a None
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