💻 파이썬 idle 이용하기
🤍 거북이 그래픽 프로그램 제작
import turtle
turtle.shape('turtle')
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.right(90)
turtle.forward(200)

import turtle
import random
def screenLeftClick(x,y):
global r,g,b
turtle.pencolor((r,g,b))
turtle.pendown()
turtle.goto(x,y)
def screenRightClick(x,y):
turtle.penup()
turtle.goto(x,y)
def screenMidClick(x,y):
global r,g,b
tSize = random.randrange(1,10)
turtle.shapesize(tSize)
r=random.random()
g=random.random()
b= random.random()
pSize = 10
r,g,b=0.0,0.0,0.0
turtle.title('거북이 그림 그리기')
turtle.shape('turtle')
turtle.pensize(pSize)
turtle.onscreenclick(screenLeftClick,1)
turtle.onscreenclick(screenMidClick,2)
turtle.onscreenclick(screenRightClick,3)
turtle.done()

🤍 변수 사용하기
name='밍이'
height='짧음'
age = 5
hobby = 'sniffing'
print(name, height, age, hobby)
name = input('이름 : ')
age = input('나이 : ')
feature = input('특징 : ')
print(name + '(' + age + ')', feature)
print(feature + '인', name)
year = 2016
print(type(year))
height = 175.5
print(type(height))
name = '제임스'
print(type(name))
score = 79
print(type(score),score)
score = float(score)
print(type(score),score)
avg = 84.9
print(type(avg),avg)
avg = int(avg)
print(type(avg),avg)