Advertisement
pacho_the_python

Untitled

Jul 11th, 2022
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.89 KB | None | 0 0
  1. from project.city_building import CityBuilding
  2. from project.country_building import CountryBuilding
  3. from project.seller_agent import Seller
  4.  
  5. building_1 = CountryBuilding("The House", 2)
  6. building_2 = CityBuilding("Touch the sky", 70)
  7. building_3 = CountryBuilding("Summer villa", 2)
  8. building_4 = CountryBuilding("Winter residence", 3)
  9. building_5 = CountryBuilding("Black Sea", 2)
  10.  
  11. new_seller = Seller("Мамулю", 10000000)
  12.  
  13. print(new_seller.add_building(building_1, 25000))
  14. print(new_seller.add_building(building_2, 125000))
  15. print(new_seller.add_building(building_3, 325000))
  16. print(new_seller.add_building(building_4, 425000))
  17. print(new_seller.add_building(building_5, 625000))
  18.  
  19. print(new_seller.sell("The House", 40000))
  20. print(new_seller.sell("Panelkata", 40000))
  21. print(new_seller.sell("Black Sea", 1200000))
  22.  
  23. print(new_seller.current_budget())
  24.  
  25. print(new_seller.building_status())
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement