728x90
반응형
import turtle as t
t.width(3)
t.pencolor('yellow')
for x in range(1, 240, 5):
if x % 2 != 0:
t.pencolor('yellow')
else:
t.pencolor('green')
t.forward(x)
t.left(90)
t.done()
728x90
반응형
'프로그램' 카테고리의 다른 글
[파이썬] 가위바위보 게임(승부 판단 로직) (0) | 2022.11.01 |
---|---|
[파이썬] 합성 파형 그래프 (0) | 2022.10.30 |
[파이썬] Qt5 입력 및 Label Text 변경. Button Click event (0) | 2022.10.27 |
[파이썬] 터틀. 육각형 도형 원형으로 배열하기 (0) | 2022.10.27 |
[파이썬] 단순 단어수 Count (collections Counter) (0) | 2022.10.24 |
댓글