I have an object at location (x, y, z) and I want a list of its neighbouring coordinates. The objects 6 neighbours are located at plus or minus 1 in each direction. My list of coordinates would look like:
[[x+1, y, z], [x-1, y, z], [x, y+1, z], [x, y-1, z], [x, y, z+1], [x, y, z-1]]
Any smart (neat) ways of doing this in python?