Jan-24-2018, 07:39 PM
I have to write a function that takes an integer nested list and integer parameters(nl, i). The function has to determine whether i is contained in the nested list nl and return True.
I have made the following code, but I know I am missing something;
I have made the following code, but I know I am missing something;
def exercise5(nl, i): if type(i)==type(1): return True print(exercise5( [[9, 4, 5], [3, 8]], 3))Could someone help with finalizing the code?