List Manipulation in Functions


#1

Why am I getting the invalid syntax message for my function?

n = [3, 5, 7]

Add your function here

def list_extender(1st):
1st.append(9)
return 1st
print list_extender(n)


#2

nevermind, it's an "L" not a "1"


#3

Thank you for clearing up the 1 vs. l issue. I was stuck and frustrated. I'm glad I was not the only one who read it that way :smile: