I'm brand new to coding and python. Could someone tell me what is wrong with my code?
def getlist():
lst=[]
answer1 = raw_input ("Would you like to add a number to create your mean value? y/n")
if (answer1 == "y"):
x = input ("Your number:")
lst = lst + [x]
return lst
def mean(l):
return float(sum(l))/len(l)
a=mean(getList())
print a