print class name accordind to output in python code example Example: python get type class name type(x).__name__