What is the best way to check whether a given object is of a given type? How about checking whether the object inherits from a given type?
Let\'s say I have an objec
You can check with the below line to check which character type the given value is:
def chr_type(chrx): if chrx.isalpha()==True: return 'alpha' elif chrx.isdigit()==True: return 'numeric' else: return 'nothing' chr_type("12)