let's consider the following code snippet:
class Vehicle:
pass
class Car(Vehicle):
pass
my_car = Car()
print(issubclass(type(my_car), Car))
print(issubclass(type(my_car), Vehicle))
Output:
True
True
Now if my task was to tell if my_car is of type Vehicle but not of type Car, how would I do that?
Is there a smart, short, elegant way for this?