def main(): shirt_one = Shirt('red', 'S', 'short-sleeve', 15) shirt_two = Shirt('yellow', 'M', 'long-sleeve', 20) print(shirt_one.get_price()) # change price of shirt one to 30 shirt_one.set_price(30) print(shirt_one.get_price()) # print shirt two color print(shirt_two.get_color())
from shirt import Shirt shirt_one = Shirt('red', 'S', 'Full-sleeve', 15) shirt_two = Shirt('Blue', 'M', 'Half sleeve', 10) #print(shirt_one.price) #print(shirt_two.price) #shirt_two.change_price(20) #print(shirt_two.price) #shirt_one.price = 18 #shirt_one.style = 'tank' shirt_one = Shirt('yellow', 'M', 'long-sleeve', 15) print(shirt_one.get_price()) shirt_one.set_price(10)
from shirt import Shirt if __name__ == '__main__': shirt_1 = Shirt('red', 'M', 'long_sleeved', 55) shirt_2 = Shirt('orange', 'S', 'short_sleeved', 30) print(shirt_1.get_price()) print(shirt_2.get_price()) print(shirt_1.discount(0.81)) shirt_1.change_price(60) print(shirt_1.discount(0.81))