Advertisement
GreatRaymondo

shapechall

May 30th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. from shapes import Triangle, Rectangle, Oval
  2.  
  3. rect1 = Rectangle()
  4.  
  5. rect1.set_width(200)
  6. rect1.set_height(100)
  7. rect1.set_color("blue")
  8. rect1.draw()
  9.  
  10. rect2 = Rectangle()
  11.  
  12. rect2.set_width(50)
  13. rect2.set_height(150)
  14. rect1.set_color("yellow")
  15. rect2.set_x(100)
  16. rect2.set_y(100)
  17. rect2.draw()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement