Write a function in Python to traverse a multi-dimensional array and print each item in the array.
[[1,2,3], [4,5,6], [7,8,9]]
def traverse_array(arr): 
 if isinstance(arr, list) or isinstance(arr, tuple): 
 for item in arr:
 traverse_array(item)
 else:
 print(arr)

arr = [[1,2,3], [4,5,6], [7,8,9]] 
traverse_array(arr)