Question: In python: Write a function named largest that will receive one list as an input argument. The elements of the list can be positive or
In python: Write a function named largest that will receive one list as an input argument. The elements of the list can be positive or negative numbers. The function will return the largest element of the list that is adjacent to an element with the value 0(zero). If the input argument list is empty, or if the largest element adjacent to a zero is itself a zero, or if there is no element with the value zero (hence, no element adjacent to a zero), or if all elements of the input argument list are zeros, then the function should return an empty list. Note: The function should return the desired output regardless of the input list size.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
