#sample solution
class Bottle:
def __init__(self, liquid):
self.liquid = liquid
self.height = 10
self.amount = 500
self.empty = False
self.full = True
#check
newBottle = Bottle("water")
print newBottle.liquid
print newBottle.height
print newBottle.amount
print newBottle.empty
print newBottle.full
No comments:
Post a Comment