# YOUR MISSION
An [octahedron](https://en.wikipedia.org/wiki/Octahedron) is an 8-sided polyhedron whose faces are triangles. 
Create a method that outputs a 3-dimensional array of an octahedron in which the height, width, and depth are equal to the provided integer `size`, which is equal to the length from one vertex to the opposite vertex on the octahedron.
## EXAMPLE
```python
create_octahedron(7)
[
    [[0, 0, 0, 0, 0, 0, 0],
     [0, 0, 0, 0, 0, 0, 0],
     [0, 0, 0, 0, 0, 0, 0],
     [0, 0, 0, 1, 0, 0, 0],
     [0, 0, 0, 0, 0, 0, 0],
     [0, 0, 0, 0, 0, 0, 0],
     [0, 0, 0, 0, 0, 0, 0]],
    [[0, 0, 0, 0, 0, 0, 0],
     [0, 0, 0, 0, 0, 0, 0],
     [0, 0, 0, 1, 0, 0, 0],
     [0, 0, 1, 1, 1, 0, 0],
     [0, 0, 0, 1, 0, 0, 0],
     [0, 0, 0, 0, 0, 0, 0],
     [0, 0, 0, 0, 0, 0, 0]],
    [[0, 0, 0, 0, 0, 0, 0],
     [0, 0, 0, 1, 0, 0, 0],
     [0, 0, 1, 1, 1, 0, 0],
     [0, 1, 1, 1, 1, 1, 0],
     [0, 0, 1, 1, 1, 0, 0],
     [0, 0, 0, 1, 0, 0, 0],
     [0, 0, 0, 0, 0, 0, 0]],
    [[0, 0, 0, 1, 0, 0, 0],
     [0, 0, 1, 1, 1, 0, 0],
     [0, 1, 1, 1, 1, 1, 0],
     [1, 1, 1, 1, 1, 1, 1],
     [0, 1, 1, 1, 1, 1, 0],
     [0, 0, 1, 1, 1, 0, 0],
     [0, 0, 0, 1, 0, 0, 0]],
    [[0, 0, 0, 0, 0, 0, 0],
     [0, 0, 0, 1, 0, 0, 0],
     [0, 0, 1, 1, 1, 0, 0],
     [0, 1, 1, 1, 1, 1, 0],
     [0, 0, 1, 1, 1, 0, 0],
     [0, 0, 0, 1, 0, 0, 0],
     [0, 0, 0, 0, 0, 0, 0]],
    [[0, 0, 0, 0, 0, 0, 0],
     [0, 0, 0, 0, 0, 0, 0],
     [0, 0, 0, 1, 0, 0, 0],
     [0, 0, 1, 1, 1, 0, 0],
     [0, 0, 0, 1, 0, 0, 0],
     [0, 0, 0, 0, 0, 0, 0],
     [0, 0, 0, 0, 0, 0, 0]],
    [[0, 0, 0, 0, 0, 0, 0],
     [0, 0, 0, 0, 0, 0, 0],
     [0, 0, 0, 0, 0, 0, 0],
     [0, 0, 0, 1, 0, 0, 0],
     [0, 0, 0, 0, 0, 0, 0],
     [0, 0, 0, 0, 0, 0, 0],
     [0, 0, 0, 0, 0, 0, 0]]
]
```
where each 1 represents a cubic unit that the octahedron takes up and where 0 is a cubic unit of empty space.
# NOTES
 - The method should return an empty array/list if either 
  - The input size is even (because then it wouldn't be an octahedron. It'd be an irregular polyhedron with 26 sides)
  - if the input size is 0 or less
  - if input size is 1 (that's called a cube).
 - If there's any problems with this kata (*COUGH* [my last Kata](https://www.codewars.com/kata/5bf76f953efcee37e2000061) *COUGH*), I'll try to get them fixed in the evenings before 10pm.
def f(n):
    r = []
    for i in range(1,n//2+2):
        x = [0]*((n//2+1)-i) + [1]*i
        r.append(x[:-1] + x[::-1])
    return r

def create_octahedron(n):
    ones = f(n)
    zeros = [0]*n
    r = []
    for i in range(1,n//2+2):
        m = ones[:i][:-1] + ones[:i][::-1]
        x = n//2+1 - i
        r.append([zeros]*x + m + [zeros]*x)
    return r[:-1] + r[::-1] if n>1 and n%2 else []
def f(n):
    r = []
    for i in range(1,n//2+2):
        x = [0]*((n//2+1)-i) + [1]*i
        r.append(x[:-1] + x[::-1])
    return r

def create_octahedron(n):
    ones = f(n)
    zeros = [0]*n
    r = []
    for i in range(1,n//2+2):
        m = ones[:i][:-1] + ones[:i][::-1]
        x = n//2+1 - i
        r.append([zeros]*x + m + [zeros]*x)
    return r[:-1] + r[::-1] if n>1 and n%2 else []