from tkinter import*
root=Tk()
c=Canvas (root, width=500, height=500,bg='white')
c.pack()
c.create_polygon (250, 20, 200, 100,300,100, fill='green')
c.create_polygon (250, 60, 180, 150, 320, 150, fill='green')
c.create_polygon (250, 100, 160, 200, 340, 200, fill='green')
c.create_polygon (250, 140, 140, 250, 360, 250, fill='green')
c.create rectangle (240,250,260,270, fill='brown') домалювати кульки (пайтон)
Ответы
Ответ:
from tkinter import*
root=Tk()
c=Canvas (root, width=500, height=500,bg='white')
c.pack()
c.create_polygon (250, 20, 200, 100,300,100, fill='green')
c.create_polygon (250, 60, 180, 150, 320, 150, fill='green')
c.create_polygon (250, 100, 160, 200, 340, 200, fill='green')
c.create_polygon (250, 140, 140, 250, 360, 250, fill='green')
c.create_rectangle (240,250,260,270, fill='brown')
c.create_oval(240, 40, 260, 60, fill='lightgrey')
c.create_oval(225, 75, 245, 95, fill='red')
c.create_oval(255, 75, 275, 95, fill='red')
c.create_oval(205, 125, 225, 145, fill='blue')
c.create_oval(240, 105, 260, 125, fill='blue')
c.create_oval(275, 125, 295, 145, fill='blue')
c.create_oval(195, 175, 215, 195, fill='yellow')
c.create_oval(225, 145, 245, 165, fill='yellow')
c.create_oval(255, 145, 275, 165, fill='yellow')
c.create_oval(285, 175, 305, 195, fill='yellow')
c.create_oval(240, 180, 260, 200, fill='lightgrey')
c.create_oval(175, 220, 195, 240, fill='purple')
c.create_oval(205, 200, 225, 220, fill='purple')
c.create_oval(240, 220, 260, 240, fill='purple')
c.create_oval(275, 200, 295, 220, fill='purple')
c.create_oval(305, 220, 325, 240, fill='purple')
Объяснение:
фото
![](https://st.uroker.com/files/aee/aee54cf0172db7edb4ce56a07ea0ea80.png)