, Python.
, n, '1' ( i) '0' ( ). .
. , , , , False, - True. '0' '1' (, integer, ).
new string[] - ++.
Edit
Python:
' '.join([('0', '1')[x == i - 1] for x in range(n)])
' '.join([str(int(x == i - 1)) for x in range(n)])
- , , - . i - 1 i, i x . . , , . , , , .
, . .