alpha = [[[1, True], [2, False], [3, True]], [[4, False], [5, True], [6,False]]]
I want to create another nested list (beta) but only with the first elements of each list, i.e: the integers.
The condition is: I want beta to contain elements from alpha only if it's adjacent boolean element is True. If it is false I want to store "o" in its corresponding position.
What I'm looking for:
beta = [[[1, "o", 3], [["o", 5 "o"]]