Lists and Functions - Exercise 9 - Using element from a list in a function
#I know that the code that is expected to be written is this: def list_function(x): return x n = [3, 5, 7] print list_function(n)
#HOWEVER, #Why can't we just do this? def list_function(x): return x n = [3, 5, 7] print list_function(n)
Codecademy doesn't accept this solution saying something weird:
"Oops, try again. list_function([1, 8, 6]) returned [1, 8, 6] instead of 8"
While, if I try this code in a terminal, it works perfectly and prints "5" as expected.
Replace this line with your code.