Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #OBJECT-ORIENTED PROGRAMMING IN PYTHON RASPBERRY PI FOUNDATION
- #www.futurelearn.com/courses/object-oriented-principles/6/steps/469430#fl-comments
- #https://htmlpreview.github.io/?https://github.com/raspberrypilearning/shapes/blob/master/shapes.html#Shape
- #https://raw.githubusercontent.com/raspberrypilearning/shapes/master/shapes.py
- from shapes import Triangle, Rectangle, Oval,Paper
- rect1 = Rectangle()
- rect1.set_x(100)
- rect1.set_y(100)
- rect1.set_width(50)
- rect1.set_height(150)
- rect1.set_color('yellow')
- rect1.draw()
- Paper.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement