Since array is global , it is initialized as 0.
insert ( a , n ) NEW_LINE X = - 5 NEW_LINE if search ( X ) == True : NEW_LINE INDENT print ( " Present " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " Not ▁ Present " ) NEW_LINE DEDENT