Advertisement
Guest User

house

a guest
Apr 1st, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.65 KB | None | 0 0
  1. from turtle import*
  2. def treug(a):
  3.     fd(a)
  4.     left(120)
  5.     fd(a)
  6.     left(120)
  7.     fd(a)
  8.     right(150)
  9. def kvad(b):
  10.     fd(b)
  11.     right(90)
  12.     fd(b)
  13.     right(90)
  14.     fd(b)
  15.     right(90)
  16.     fd(b)
  17.     right(90)
  18. def pr(x, y):
  19.     fd(y)
  20.     right(90)
  21.     fd(x)
  22.     right(90)
  23.     fd(y)
  24.     right(90)
  25.     fd(x)
  26.     right(90)
  27.  
  28. speed(0)
  29. fillcolor("purple")
  30. begin_fill()
  31. treug(100)
  32. end_fill()
  33. up()
  34. goto(0, -100)
  35. down()
  36. begin_fill()
  37. kvad(100)
  38. end_fill()
  39. up()
  40. goto(10, -50)
  41. down()
  42. fillcolor("aqua")
  43. begin_fill()
  44. kvad(20)
  45. end_fill()
  46. up()
  47. goto(50, -100)
  48. down()
  49. fillcolor("brown")
  50. begin_fill()
  51. pr(30, 80)
  52. end_fill()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement