python method object get class name code example Example: python get type class name type(x).__name__