def ChangeList (K = [0], itr = 0): if itr < 10: K.append(1) itr += 1 ChangeList() else: return K L = ChangeList() print (L)I'm trying to get a list from the script above, but got an error "maximum recursion depth exceeded in comparison".
Can anyone help me fix it? It is an iteration practice, I understand there're different ways to get the list.