01
PYTHON
제어구조와 알고리즘
조건문과 반복문에서 시작해 중첩 구조, 표준 라이브러리, 문제 해결 알고리즘으로 확장합니다.
- if·elif·else, for·while, break·continue
- random, math, datetime 모듈 활용
- Up/Down 게임, 최대공약수, 소수·피보나치 문제
- 워크북 기반 단계별 실습
while cnt < 10:
answer = int(input())
if answer > target:
print("down")
elif answer < target:
print("up")
else:
break