Advertisement
plarmi

work11_5

Jun 2nd, 2023
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.89 KB | None | 0 0
  1. import turtle        
  2. t = turtle.Pen()    
  3. t.shape('turtle')    
  4. t.color('black')    
  5. t.up()              
  6. t.goto (100, 0)      
  7. t.left(90)          
  8. t.down()            
  9. t.fillcolor('yellow')
  10. t.begin_fill()      
  11. t.circle(100)        
  12. t.end_fill()        
  13. t.up()              
  14. t.goto(-30, 50)      
  15. t.down()            
  16. t.fillcolor('blue')  
  17. t.begin_fill()      
  18. t.circle(15)        
  19. t.end_fill()        
  20. t.up()              
  21. t.goto(60, 50)      
  22. t.down()            
  23. t.fillcolor('blue')  
  24. t.begin_fill()      
  25. t.circle(15)        
  26. t.end_fill()        
  27. t.up()              
  28. t.goto(0, 30)        
  29. t.down()            
  30. t.color('black')    
  31. t.pensize(8)        
  32. t.left(180)          
  33. t.forward(50)        
  34. t.up()              
  35. t.goto(70, -10)      
  36. t.color('red')      
  37. t.down()            
  38. t.circle(-70, 180, 30)                    
  39. turtle.exitonclick()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement