Search an Element from a list of Heterogeneous Data Types in Python

Search an Element from a list of Heterogeneous Data using try and catch method of python. This code tries to type cast the input and then search using in