# data[].attributes.body
import turtle

t = turtle.Turtle()

t . shape('turtle')

radlus = int(input('원의 반지름을 입력하세요 : ' ))

color=int(input('원의 색깔을 입력하세요 : '))

t. color(blue)

t.begin_fill() #도형 색칠 시작

t.circle(5)

t.end_fill() # 도형 색칠 종료

turtle.extoclik()

# data[].attributes.body
#x^2+1 함수 그리기

'''

import turtle

t=turtle.Turtle()

t.shape("turtle")

def f(x):

return x**2+1

t.goto(200,0)

t.goto(0,0)

t.goto(0,200)

t.goto(0,0)

for x in range(150):

t.goto(x, int(0.01*f(x)))

'''

# data[].attributes.body
import turtle

t=turtle.Turtle()

t.color(0,1,1)

t.begin_till()

t.circle(70)

t.end_till()

# data[].attributes.body
import turtle

t=turtle.Turtle()

t.pendown

t.left(90)

t.forward(200)

t.right(50)

t.forward(25)

t.left(50)

# data[].attributes.body
import turtle

t=

# data[].attributes.body
import turtle

t=turtle.Turtle()

t.shape('turtle')

def f(x):

return x**2+1

t.shape('classic')

t.goto(200,0)

t.goto(0,0)

t.goto(0,200)

t.goto(0,0)

t.color('red')

for x in range (150):

t.goto(x, int(0.01*f(x)))

# data[].attributes.body
#임포트 세팅

from turtle import *

import math

#입력

a=int(input("x^2의 계수를 입력하세요 : "))

b=int(input("x의 계수를 입력하세요 : "))

c=int(input("상수항을 입력하세요 : "))

#판별식

d=b**2-4*a*c

#판별식 >0 - 서로다른 두 실근

if d>0:

x1=((-b+math.sqrt(-d))/2*a)

x2=((-b-math.sqrt(-d))/2*a)

print("첫번째 근 :")

#판별식 =0 -중근

if d==0:

x1==

# data[].attributes.body
import turtle

t=turtle.Turtle()

t.screen.bgcolor('white')

t.color('black')

t.shape('turtle')

num=int(input('그릴 정다각형의 꼭짓점 개수:'))

a=((num-2)*180)/num

b=180-a

print(b)

t.pendown()

for i in range(1,b+1,1):

t.forwar(100)

t.left(b)

# data[].attributes.body
import turtle

t=turtle.Turtle()

t.shape("turtle")

def f(x):

return x**2+1

t.goto(200,0)

t.goto(0,0)

t.goto(0,200)

t.goto(0,0)

for x in range(150):

t.goto(x, int(0.01*f(x)))

# data[].attributes.body
import turtle

t=turtle.Turtle()

t.color('red')

t.left(35)

t.forward(100)

t.left(100)

t.forward(60)

t.left(45)

# data[].attributes.body
import turtle

t=turtle.Turtle()

t.shape("turtle")

def f(x):

return x**2+1

t.goto(200,0)

t.goto(0,0)

t.goto(0,200)

t.goto(0,0)

for x in range(150):

t.goto(x,int(0.01*f(x)))

import turtle

t=turtle.Turtle()

t.shape("turtle")

def f(x):

return x**2+1

t.goto(-200,0)

t.goto(0,0)

t.goto(0,200)

t.goto(0,0)

for x in range(150):

t.goto(x,int(-0.01*f(x)))

# data[].attributes.body
import turtle

pen = turtle.Turtle()

pen.speed(5)

pen.penup()

pen.goto(0, -150)

pen.pendown()

pen.color("brown")

pen.begin_fill()

pen.setheading(90)

pen.forward(150)

pen.left(90)

pen.circle(15, 180)

pen.left(90)

pen.forward(150)

pen.left(90)

pen.circle(15, 180)

pen.end_fill()

# 잎 그리기

pen.penup()

pen.goto(0, 0)

pen.setheading(45)

pen.pendown()

pen.color("green")

pen.begin_fill()

pen.circle(50, 90)

pen.left(90)

turtle.done()

# data[].attributes.body
import turtle

t=turtle.Turtle()

t.shape("turtle")

def f(x):

return x**2+1

t.goto(200,0)

t.goto(0,0)

t.goto(0,200)

t.goto(0,0)

t.goto(0,-200)

t.goto(0,0)

t.goto(-200,0)

t.goto(0,0)

# data[].attributes.body
import turtle

t=turtle.Turtle()

t.color('black')

t.left(40)

t.forward(115)

t.left(40)

t.forward(115)

t.left(40)

t.forward(115)

t.left(40)

t.forward(115)

t.left(40)

t.forward(115)

t.left(40)

t.forward(115)

t.left(40)

t.forward(115)

t.left(40)

t.forward(115)

t.left(40)

t.forward(115)

# data[].attributes.body
import turtle

def draw_heart():

"하트를 그리는 함수"

turtle.speed(3) turtle.color("red") turtle.begin_fill() # 하트 그리기 turtle.left(50) turtle.forward(100) turtle.circle(50, 180) turtle.right(90) turtle.circle(50, 180) turtle.forward(100) turtle.end_fill()

def main(): draw_heart() turtle.hideturtle()

turtle.done()

if name == "__main__":

main()

# data[].attributes.body
import turtle

pen=turtle.Turtle()

pen.speed(0)

pen.penup()

pen.goto(0,-100)

pen.pendown()

pen.circle(100)

continents=[(-30,20),(40,0),(-40,-30)]

for x,y in continents:

pen.penup()

pen.goto(x,y)

pen.pendown()

pen.dot(20)

pen.goto(10,20)

pen.pendown()

pen.dot(20)

pen.goto(20,-20)

pen.pendown()

pen.dot(20)

pen.goto(40,-40)

pen.pendown()

pen.dot(20)

pen.goto(50,50)

pen.pendown()

pen.dot(20)

pen.hideturtle()

turtle.done()

# data[].attributes.body
important turtle

t=turtle.Turtle()

t.color('green')

t.forward(80)

t.left(180)

t.forward(80)

t.left(180)

t.forward(80)

t.left(180)

t.forward(80)

t.left(180)

t.forward(80)

t.left(180)

t.forward(80)

t.left(180)

t.forward(80)

t.left(180)

t.forward(80)

t.left(180)

# data[].attributes.body
import turtle

t=turtle.Turtle()

t.shape('turtle')

t.color('red')

t.left(35)

t.forward(100)

t.left(100)

t.forward(60)

t.left(45)

t.left(35)

t.forward(100)

t.left(100)

t.forward(60)

t.left(45)

t.forward(15)

t.left(35)

t.forward(100)

t.left(100)

t.forward(60)

t.left(45)

t.left(35)

t.forward(100)

t.left(100)

t.forward(60)

t.left(45)

t.forward(15)

t.left(35)

t.forward(100)

t.left(100)

t.forward(60)

t.left(45)

t.left(35)

t.forward(100)

t.left(100)

t.forward(60)

t.left(45)

t.forward(15)

t.left(35)

t.forward(100)

t.left(100)

t.forward(60)

t.left(45)

t.left(35)

t.forward(100)

t.left(100)

t.forward(60)

t.left(45)

t.forward(15)

t.left(35)

t.forward(100)

t.left(100)

t.forward(60)

t.left(45)

t.left(35)

t.forward(100)

t.left(100)

t.forward(60)

t.left(45)

t.forward(15)

t.left(35)

t.forward(100)

t.left(100)

t.forward(60)

t.left(45)

t.left(35)

t.forward(100)

t.left(100)

t.forward(60)

t.left(45)

t.forward(15)

t.left(35)

t.forward(100)

t.left(100)

t.forward(60)

t.left(45)

t.left(35)

t.forward(100)

t.left(100)

t.forward(60)

t.left(45)

# data[].attributes.body
import turtle

def draw_heart():

"""하트를 그리는 함수"""

turtle.speed(3)

turtle.color("red")

turtle.begin_fill()

# 하트 그리기

turtle.left(50)

turtle.forward(100)

turtle.circle(50, 180)

turtle.right(90)

turtle.circle(50, 180)

turtle.forward(100)

turtle.end_fill()

def main():

draw_heart()

turtle.hideturtle()

turtle.done()

if name == "__main__":

main()