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

7th Jan 2020, 8:51 PM
THEGreatGatsby
THEGreatGatsby - avatar
1 Odpowiedź
0
You only appended 1 element to the array
7th Jan 2020, 9:07 PM
Jnn
Jnn - avatar