0
Why the output is like this
x = [] def af(b): x.append(b) return x def ab(f): f +="1" return f print(len(af(ab([1,0])))) I do not know why the output is 1
1 Odpowiedź
0
You only appended 1 element to the array
x = [] def af(b): x.append(b) return x def ab(f): f +="1" return f print(len(af(ab([1,0])))) I do not know why the output is 1