In the code below, I am trying to multiply each number in the list by 2, and print out the new list. However, it just prints the original list. What is wrong with this code, and how should I modify it? Thanks!
def list_function(n): for i in n: i = i * 2 return n x = [4,5,8] print (list_function(x))