Advertisement
Guest User

clara file3

a guest
Nov 21st, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.62 KB | None | 0 0
  1. #CircleMain.py
  2. #Main function to use the circle clas
  3.  
  4. import CircleClass
  5.  
  6. def main():
  7.    
  8.     item1 = Item.Item(24.99, 14, "Wireless Mouse")        
  9.     item2 = Item.Item(22.49, 27, "USB Keyboard")        
  10.     item3 = Item.Item(24.99, 12, "HDMI Cable")        
  11.     item4 = Item.Item(7.99, 7, "Reading Glasses")        
  12.     item4.set_quantity(2);  
  13. ​​
  14.     print(item1)
  15.     print("")
  16.     print(item2)
  17.     print("")
  18.     print(item3)
  19.     print("")
  20.     print(item4)
  21.     print("")
  22.  
  23.     listTotal = [item1, item2, item3, item4]
  24.  
  25.     #find total weight and price
  26.     for T in listTotal:
  27.         print(T)
  28.  
  29. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement