Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #CircleMain.py
- #Main function to use the circle clas
- import CircleClass
- def main():
- item1 = Item.Item(24.99, 14, "Wireless Mouse")
- item2 = Item.Item(22.49, 27, "USB Keyboard")
- item3 = Item.Item(24.99, 12, "HDMI Cable")
- item4 = Item.Item(7.99, 7, "Reading Glasses")
- item4.set_quantity(2);
-
- print(item1)
- print("")
- print(item2)
- print("")
- print(item3)
- print("")
- print(item4)
- print("")
- listTotal = [item1, item2, item3, item4]
- #find total weight and price
- for T in listTotal:
- print(T)
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement