Could anyone tell me what I am doing wrong in my code. How come, I cannot update my global variable? To my understanding, if it is a global variable I can modify it anywhere.
If the numpy is creating a new array (when I use np.delete), what would be the best way to delete an element in an numpy array.
import numpy as np
global a
a = np.array(['a','b','c','D'])
def hello():
a = np.delete(a, 1)
print a
hello()