You are not returning anything. Always use the return
statement to return a value from a function. Python does not use the last statement in a function as a return value.
def getData(i, value):
global dataList
if condition:
return list(suffixList)
#do something
return getData(i, value)
A function that exits without an explicit return
, returns None
instead.