So say I have a 0-d array like this:
a = [3.0, 0.0, 3.0, 0.0, 5.0]
for each item in this array, I want to convert it back to a certain string value depending on the number. So for 0.0, I want to return 'no'. For 3.0, I want to return 'maybe'. And for 5.0, I want to return 'yes'. So it would look like this:
a = ['maybe', 'no', 'maybe', 'no', 'yes']
my problem is when I try to write a for loop to convert each item, I don't think I can use enumerate since all of the items are held in a 0-d array. I'm not sure how else I can go about updating this type of array.