IDLE.
def __init__(self, name, sku, price, source):
float
def get_name(self):
def get_sku(self):
def get_price(self):
def get_source(self):
def __str__(self):
def __init__(self, name, sku, price, source, weight):
def __str__(self):
def get_weight(self):
p_1 = Product("Large Economy Tide", "132532112352", 4.57, "P&G")
print(p_1)
print(p_1.get_name())
print(p_1.get_sku())
print(p_1.get_price())
print(p_1.get_source())
dg_1 = Dry_Good("Large Economy Tide", "132532112352", 4.57, "P&G", 40)
print(dg_1)
print(dg_1.get_weight())
Large Economy Tide: 132532112352 4.57, P&G Large Economy Tide 132532112352 4.57 P&G Large Economy Tide: 132532112352 4.57, P&G, Weight: 40 40
Large Economy Tide: 132532112352 4.57, P&G Large Economy Tide 132532112352 4.57 P&G Large Economy Tide: 132532112352 4.57, P&G, Weight: 40 40
cd it117/hw/hw11
hw11.py
Large Economy Tide: 132532112352 4.57, P&G Large Economy Tide 132532112352 4.57 P&G Large Economy Tide: 132532112352 4.57, P&G, Weight: 40 40
Copyright © 2021 Glenn Hoffman. All rights reserved. May not be reproduced without permission.