Advertisement
zhongnaomi

random draw a triangle

Feb 17th, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. #OBJECT-ORIENTED PROGRAMMING IN PYTHON RASPBERRY PI FOUNDATION
  2. #www.futurelearn.com/courses/object-oriented-principles/6/steps/469430#fl-comments
  3. #https://htmlpreview.github.io/?https://github.com/raspberrypilearning/shapes/blob/master/shapes.html#Shape
  4. #https://raw.githubusercontent.com/raspberrypilearning/shapes/master/shapes.py
  5. from shapes import Triangle, Rectangle, Oval,Paper
  6.  
  7. tri1 = Triangle()
  8. tri1.randomize()
  9. tri1.draw()
  10. Paper.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement