#
# µû¶óÇÏ¸ç ¹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020)
# LAB 6-6 °ÅºÏÀÌ¿¡°Ô ÀÌÂ÷ÇÔ¼ö¸¦ ±×¸®°Ô ÇÏÀÚ, 162ÂÊ
#
import turtle
t = turtle.Turtle()
t.shape("turtle")
t.speed(0) # ÅÍƲ ±×·¡ÇÈÀÇ ±×¸®±â ¼Óµµ¸¦ °¡Àå ºü¸£°Ô ÇÑ´Ù
def f(x): # 2Â÷ ÇÔ¼ö¸¦ ¸¸µç´Ù
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)))
turtle.done()