Python Creating Diagonal Matrix Using Numpy Returns Zero

Python Creating Diagonal Matrix Using Numpy Returns Zero