# data[].attributes.body
import turtle
t=turtle.Turtle()

t.speed(0)

turtle.bgcolor("black")

for i in range(100):
if i%3==0:
t.color("yellow")
elif i%3==1:
t.color("red")
elif i%3==2:
t.color("blue")
t.forward(i*4)
t.right(121)

# data[].attributes.body
import turtle
t=turtle.Turtle()

t.speed(10)

turtle.bgcolor("black")

for i in range(100):
if i%3==0:
t.color("yellow")
elif i%3==1:
t.color("red")
elif i%3==2:
t.color("blue")

t.forward(i*4)
t.right(121)

# data[].attributes.body
import turtle as t

# 화면 설정
t.setup(width=800, height=600)
t.speed(0)
t.bgcolor("green")

# 경기장 외곽선 그리기
t.penup()
t.goto(-300, -200)
t.pendown()
t.color("white")
t.pensize(4)
t.forward(600)
t.left(90)
t.forward(400)
t.left(90)
t.forward(600)
t.left(90)
t.forward(400)
t.left(90)

# 중앙선 그리기
t.penup()
t.goto(0, -200)
t.pendown()
t.forward(600)
t.hideturtle()

# 페널티 박스 그리기
def draw_penalty_box(x, y):
t.penup()
t.goto(x, y)
t.pendown()
t.setheading(0)
t.forward(40)
t.left(90)
t.forward(100)
t.left(90)
t.forward(80)
t.left(90)
t.forward(100)
t.left(90)
t.forward(40)

# 왼쪽 페널티 박스
draw_penalty_box(-180, -50)

# 오른쪽 페널티 박스
draw_penalty_box(140, -50)

# 골대 그리기
def draw_goal(x, y):
t.penup()
t.goto(x, y)
t.pendown()
t.setheading(0)
t.color("white")
t.pensize(3)
t.forward(10)
t.left(90)
t.forward(30)
t.left(90)
t.forward(10)
t.left(90)
t.forward(30)
t.hideturtle()

# 왼쪽 골대
draw_goal(-190, -30)

# 오른쪽 골대
draw_goal(180, -30)

# 중앙 원 그리기
t.penup()
t.goto(0, -50)
t.pendown()
t.color("white")
t.setheading(0)
t.pensize(3)
t.circle(50)

# 창 닫기 전까지 유지
t.done()

# data[].attributes.body
import turtle

t=turtle.Turtle()

t.speed(10)

t.color("red")
turtle.bgcolor("black")

for i in range(100):
if i%3==0:
t.color("red")
elif i%3==1:
t.color("blue")
elif i%3==2:
t.color("yellow")

t.forward(i*2.5)
t.right(121)

# data[].attributes.body
import turtle

colors = ["black", "white"]

t = turtle.Turtle()
t.speed(0)

for i in range(5):
for j in range(5):
color_idx = (i + j) % 2
t.penup()
t.goto(i * 30, -j * 30)
t.pendown()
t.fillcolor(colors[color_idx])
t.begin_fill()
for _ in range(4):
t.forward(30)
t.right(90)
t.end_fill()

turtle.done()

# data[].attributes.body
turtle.bgcolor("white")

t = turtle.Turtle()
t.speed(0)

for i in range(100):
x = random.randint(-200, 200)
y = random.randint(-200, 200)
t.penup()
t.goto(x, y)
t.pendown()
t.dot(random.randint(5, 20))

turtle.done()

# data[].attributes.body
import turtle
import random

turtle.bgcolor("white")

t1 = turtle.Turtle()
t1.color("red")
t1.shape("turtle")

t2 = turtle.Turtle()
t2.color("blue")
t2.shape("turtle")

t1.penup()
t2.penup()
t1.goto(-200, 100)
t2.goto(-200, -100)
t1.pendown()
t2.pendown()

for i in range(100):
t1.forward(random.randint(1, 5))
t2.forward(random.randint(1, 5))

turtle.done()

# data[].attributes.attachment_link.readable_text
#박시현
import turtle
t=turtle.Turtle()
t.shape("turtle")
'''
for i in range(3 ):
  t.forward(100)
  t.right(120)
t.penup()
t.goto(150,150)
t.pendown()
'''
t.color("purple")
t.speed(20)
for i in range(100):
    t.forward(100)
    t.right(170)
    


# data[].attributes.attachment_link.readable_text
#yoonucham
import turtle

t=turtle. Turtle()
t.shape("turtle")

t.coior("red")
t.speed(0)

t.fillcolor("yellow")
t.begin_fill()

for i in range(100 ):
    t.forward(200)
    t.right(  170)

# data[].attributes.attachment_link.readable_text
import turtle

t=turtle.Turtle()
t.shape ("turtle")

t.forward(100)
t.right(120)
t.forward(100)
t.right(120)
t.forward(100)
t.right(120)

# data[].attributes.attachment_link.readable_text
Python 3.11.4 (tags/v3.11.4:d2340ef, Jun  7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.

===================== RESTART: C:/Users/user/Desktop/12.py =====================
Traceback (most recent call last):
  File "C:/Users/user/Desktop/12.py", line 4, in <module>
    t=turtle. turtle()
AttributeError: module 'turtle' has no attribute 'turtle'. Did you mean: 'Turtle'?

===================== RESTART: C:/Users/user/Desktop/12.py =====================
Traceback (most recent call last):
  File "C:/Users/user/Desktop/12.py", line 4, in <module>
    t=turtle. turtle()
AttributeError: module 'turtle' has no attribute 'turtle'. Did you mean: 'Turtle'?



===================== RESTART: C:/Users/user/Desktop/12.py =====================
Traceback (most recent call last):
  File "C:/Users/user/Desktop/12.py", line 4, in <module>
    t=turtle. turtle()
AttributeError: module 'turtle' has no attribute 'turtle'. Did you mean: 'Turtle'?


===================== RESTART: C:/Users/user/Desktop/12.py =====================
Traceback (most recent call last):
  File "C:/Users/user/Desktop/12.py", line 3, in <module>
    t=turtle. turtle()
AttributeError: module 'turtle' has no attribute 'turtle'. Did you mean: 'Turtle'?

===================== RESTART: C:/Users/user/Desktop/12.py =====================
Traceback (most recent call last):
  File "C:/Users/user/Desktop/12.py", line 4, in <module>
    t.shape(" turtle")
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\turtle.py", line 2777, in shape
    raise TurtleGraphicsError("There is no shape named %s" % name)
turtle.TurtleGraphicsError: There is no shape named  turtle

===================== RESTART: C:/Users/user/Desktop/12.py =====================
Traceback (most recent call last):
  File "C:/Users/user/Desktop/12.py", line 6, in <module>
    t.shape(" turtle")
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\turtle.py", line 2777, in shape
    raise TurtleGraphicsError("There is no shape named %s" % name)
turtle.TurtleGraphicsError: There is no shape named  turtle
>>> 
===================== RESTART: C:/Users/user/Desktop/12.py =====================
Traceback (most recent call last):
  File "C:/Users/user/Desktop/12.py", line 5, in <module>
    t.shape(" turtle")
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\turtle.py", line 2777, in shape
    raise TurtleGraphicsError("There is no shape named %s" % name)
turtle.TurtleGraphicsError: There is no shape named  turtle
>>> 
===================== RESTART: C:/Users/user/Desktop/12.py =====================
>>> 
===================== RESTART: C:/Users/user/Desktop/12.py =====================

# data[].attributes.attachment_link.readable_text
#정석주
import turtle
t=turtle.Turtle()
t.shape("turtle")


#for i in range(3):
 #   t.forward(100)
  #  t.left(120)
'''
t.penup()
t.goto(-150,-150)
t.pendown()
'''
#for i in range(5):
 #   t.forward(100)
  #  t.left(144)

t.pencolor("red")
t. speed(10)
t.fillcolor("yellow")
t.begin_fill()
for i in range(50):
    t.forward(100)
    t.left(170)
t.end_fill()

# data[].attributes.attachment_link.readable_text
#이호진

import turtle
t=turtle.Turtle()
t.shape("turtle")

#for i in range(3):
#    t.forward(150)
#    t.left(120)
'''    
for i in range(5):
    t.forward(150)
    t.left(144)
    
t.penup()
t.goto(150,150)
t.pendown()
'''
t.pencolor("red")
t.speed(10)
t.fillcolor("yellow")
t.begin_fill()

for i in range(50):
    t.forward(180)
    t.right(170)
t.end_fill()
    
    
    

# data[].attributes.attachment_link.readable_text
import turtle

t=turtle.Turtle()

t.shape("turtle")
t.color("red")
t.speed(0)

#for i in range(100):
#         t.forward(150)
#         t.right(120)
'''
t.penup()
t.goto(150,150)
t.pendown()
'''
t.fillcolor("yellow")
t.begin_fill()
for i in range(100):
         t.forward(200)
         t.right(170)   
t.end_fill()

# data[].attributes.attachment_link.readable_text
import turtle

t=turtle.Turtle()
t.shape("turtle")

t.speed(10)

#for i in range(3):  
    #t.forward(100)
    #t.left(120)

t.color("yellow")
t.fillcolor("skyblue")
t.begin_fill()

for i in range(100):  
    t.forward(200)
    t.left(205)

t.end_fill()

# data[].attributes.body
11203 김유빈

# data[].attributes.attachment_link.readable_text
import turtle

t=turtle.Turtle()
t.shape("turtle")

t.right(360/6)

#for i in range(3):
  #  t.right(360/3)
'''
t.penup()
t.goto(150,150)
t.pendown()
'''
t.speed(10)
t.color("red")
t.fillcolor("yellow")
t.begin_fill()

for i in range(100):
    t.forward(150)
    t.right(170)
t.end_fill()






# data[].attributes.body
#터틀 스타 그리기
import turtle

t=turtle.Turtle()
t.shape("turtle")

t.speed(10)
t.color("red")
t.fillcolor("yellow")

t.begin_fill()
for i in range(50):
t.forward(150)
t.left(171)
t.end_fill()

# data[].attributes.headline
2차시 : 원 반복하기, 위치변경, 배경 좌표

# data[].attributes.subject
2차시 : 원 반복하기, 위치변경, 배경 좌표

# data[].attributes.body
for i in range(100):
penup/down
goto(좌표)

# data[].attributes.headline
1차시 : 사각형 그리기

# data[].attributes.subject
1차시 : 사각형 그리기

# data[].attributes.body
앞으로,뒤로, color 사용하기

# data[].attributes.attachment_link.readable_text
import turtle

t=turtle.Turtle()
t.shape("turtle")
t.speed(0)
turtle.bgcolor("black")
t.color("yellow")

for i in range(100):
    t.circle(50)
    t.left(360/100)

t.goto(200,200)

t.color("green")
for i in range(100):
    t.circle(25)
    t.left(360/100)

# data[].attributes.attachment_link.readable_text
import turtle

t:turrle.Turtle()
t.shape("turtle")
t.speed(0)
turtle.bgcolor("black")
t.color("yellow")

for i in range(100):
    t.circle(50)
    t.left(360/100)

t.goto(200,200)

t.color("sky blue")
for i in range(100):
    t.circle(20)
    t.left(360/100)


# data[].attributes.attachment_link.readable_text
import turtle

p=turtle.Turtle()
p.shape("turtle")


p.forward(100)
p.right(90)
p.color("red")
p.forward(100)
p.right(90)
p.color("yellow")
p.forward(100)
p.right(90)
p.forward(100)



# data[].attributes.attachment_link.readable_text
import turtle

c=turtle.Turtle()
c.shape("turtle")

c.forward(100)
c.right(90)
c.forward(100)
c.right(90)
c.forward(100)
c.right(90)
c.forward(100)
c.right(90)

# data[].attributes.attachment_link.readable_text
import turtle

p=turtle.Turtle()
p.shape("turtle")

# data[].attributes.attachment_link.readable_text
import turtle

p=turtle.Turtle()

p.shape("turtle")

p.forward(100)

p.right(90)

p.forward(100)

p.right(90)

p.forward(100)

p.right(90)

p.forward(100)

p.right(90)

# data[].attributes.body
11217이호진

# data[].attributes.attachment_link.readable_text
import turtle

p=turtle.Turtle()
p.shape("turtle")


p.forward(100)
p.right(90)
p.forward(100)
p.right(90)
p.forward(100)
p.right(90)
p.forward(100)

# data[].attributes.attachment_link.readable_text
import turtle

p=turtle.Turtle()

p.shape("turtle")

p.forward(100)
p.right(90)
p.forward(100)
p.right(90)
p.forward(100)
p.right(90)
p.forward(100)
        

# data[].attributes.attachment_link.readable_text
import turtle

k=turtle.Turtle()
k.shape("turtle")
k.color("green")
k.forward(100)
k.right(90)
k.forward(100)
k.right(90)
k.forward(100)
k.right(90)
k.forward(100)



# data[].attributes.body
import turtle

t=turtle.Turtle()

t.speed(10)

turtle.bgcolor("black")

for i in range(100):
if i%3==0:
t.color("red")
elif i%3==1:
t.color("blue")
elif i%3==2:
t.color("yellow")

t.forward(i*2.5)
t.right(121)
t.end_fill()

# data[].attributes.body
import turtle

t=turtle.Turtle()

t.speed(10)

turtle.bgcolor("black")

for i in range(100):
if i%3==0:
t.color("yellow")
elif i%3==1:
t.color("pink")
elif i%3==2:
t.color("sky blue")

t.forward(i*2.5)
t.right(121)

# data[].attributes.body
import turtle
import random

t=turtle.Turtle()

t.speed(0)
turtle.bgcolor("black")

for i in range(200):
if(i%3==0):
t.color("red")
elif(i%3==1):
t.color("blue")
elif(i%3==2):
t.color("yellow")

t.forward(i*1.5)
t.left(121)