i can easily search a list to find the position of a specific value if i have the exact value using the index function. if i know only the type or class (an example is a search for the first float among strs and ints), is there a similarly concise way to do that search (in the hope it is super fast like list.index might be) and not have to code my own loop (which is doomed to be as slow as any other simple loop over a list). note that i want the position, not just whether some item is of that type. for example, i want the index of the first int in a tuple (or the first str in a list).
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.