text: class Vehicle:
      def __init__(self, type, model, price):
          self.type = type
          self.model = model
          self.price = price
          self.owner = None
  
      def buy(self, money, owner):
          if money >= self.price and self.owner == None:
              self.owner = owner
              return f"Successfully bought a {self.type}. Change: {(money - self.price):.2f}"
          elif money < self.price:
              return "Sorry, not enough money"
          elif self.owner != "None":
              return "Car already sold"
  
      def sell(self):
          if self.owner != None:
              self.owner = None
          else:
              return "Vehicle has no owner"
  
      def __repr__(self):
          result = ""
          if self.owner == None:
              result = f"{self.model} {self.type} is on sale: {self.price}"
          else:
              result = f"{self.model} {self.type} is owned by: {self.owner}"
          return result
  
  
  
  
  
  
  
  