6 תשובות
את יכולה לשלוח לי את הקוד יענו לעשות לו העתק הדבק
שואל השאלה:
איזה קוד?
אנונימית
של מה שאת כתבת
שואל השאלה:
כןכן
אנונימית
שואל השאלה:
import turtle

def draw_circle(turtle, color, size, x, y):
turtle.penup()
turtle.color(color)
turtle.fillcolor(color)
turtle.goto(x,y)
turtle.pendown()
turtle.begin_fill()
turtle.circle(size)
turtle.end_fill()

tommy = turtle.turtle()
tommy.shape("turtle")
tommy.speed(500)

draw_circle(tommy,"red", 50, 50, 0)
draw_circle(tommy, "blue", 50, 0, 0)
draw_circle(tommy, "yellow", 50, -50, 0)
אנונימית
זה לא קשה אבל מלא זמן שלא עבדתי עם turtle