P.125 터틀로 그림 그리기
![Untitled](https://prod-files-secure.s3.us-west-2.amazonaws.com/9a483c79-96ea-48a0-a254-c48a07bcea44/dd4b2ac0-46b5-4c80-aa70-602ddca2f681/Untitled.png)
SHAPE()함수로 커서 모양 바꿈
FOR 반복문으로 프렉탈 구조 생성함
COLOR()함수로 색 바꿈
참고
네이버
p.125쪽 코드
![Untitled](https://prod-files-secure.s3.us-west-2.amazonaws.com/9a483c79-96ea-48a0-a254-c48a07bcea44/a1da18e2-9f8c-4f75-9bb8-1d05d796a7d8/Untitled.png)
- hi, name에는 따옴표 (” “)가 있는 문자열 데이터(str) 데이터를 넣음
- 키, 몸무게에는 따옴표 (” “)가 없는 정수형 숫자 데이터(int) 데이터를 넣음
p.135쪽 코드
![Untitled](https://prod-files-secure.s3.us-west-2.amazonaws.com/9a483c79-96ea-48a0-a254-c48a07bcea44/088c1f42-c170-46ad-9c4b-1636d06e98ad/Untitled.png)
- input 함수는 입력 함수로써 콘솔창에서 인간에게 데이터 입력을 받는다.
- input 함수로 받은 num 데이터는 str문자 데이터이기 때문에 int(num) 코드에서
- 숫자데이터로 타입을 변경하여서 곱셈을 더하였다.