Python Program to Get the Class Name of an Instance (Using type() and __name__ attribute)
class Vehicle:
def name(self, name):
return name
v = Vehicle()
print(type(v).__name__)
Output
Vehicle
