[Python] 5-2장 조건문 응용(윤년 판단, 동전 던지기 등), random 라이브러리
- 정수의 부호에 따라 거북이 움직이기(터틀 그래픽) import turtle t = turtle.Turtle() t.shape("turtle") t.penup() t.goto(100,100) t.write("거북이가 여기로 오면 양수입니다.") t.goto(100,0) t.write("거북이가 여기로 오면 0입니다.") t.goto(100,-100) t.write("거북이가 여기로 오면 음수입니다.") t.home() t.pendown() s = int(turtle.textinput("", "숫자를 입력하시오: ")) if s > 0: t.goto(100,100) elif s == 0: t.goto(100, 0) else: t.goto(100, -100) - 나이 제한 검사 age = int(input..