I need to get the following: ([[True, True, False, False, False, False],[ False, False,True, True, False, False],[False, False, False, False,True, True, ]])
I wrote the following:
def create_bool():
x_bool =[True, True, False, False,
False, False]
arr_bool = []
for i in range(3):
arr_bool.append(x_bool)
print(arr_bool)
x_bool[:] = x_bool[-2:] + x_bool[0:-2]
i+=1
return arr_bool
but I got:([[True, True, False, False, False, False], [True, True, False, False, False, False], [True, True, False, False, False, False]])
x_bool = x_bool[-2:] + x_bool[:-2]