AI_PRO/TractorLoad.py

13 lines
282 B
Python
Raw Normal View History

2021-03-29 01:24:28 +02:00
class TractorTrailer:
def __init__(self, __load):
self.__load = __load
@property
def load(self):
return self.__load
@load.setter
def load(self, load):
if self.__load is "Fertilizer" or "Seeds" or "Water":
self.__load = load