Here is the following code that I have executed but the answer I desired should be like [1, 4, 6, 7] but instead the output is [False, True, True, True, False, False, True, False]... Please guide me on how can I get the desired output.
a_list = ["a", 1, 4, 6, "b", "d", 7, "o"]
result_list = [(type(x) == int) for x in a_list]
print(result_list)