본문 바로가기
프로그램/Python 1000제

Python 119제] 파이썬 EXPRESS CHAPTER 4. Programming 18. p202

by 건티 2022. 12. 23.
728x90

출처 : 반크_세계유산 경복궁

 

참고풀이]

import turtle
import random

t=turtle.Turtle()
t.shape("turtle")

for i in range(10):
    r=random.randint(10,200)
    x=random.randint(-350,350)
    y=random.randint(-200,200)
    t.penup()
    t.goto(x,y)
    t.pendown()
    t.circle(r)

 

참고풀이 결과]

 

 

 

 

 

대한민국의 아름다운 영토, 독도

 

반응형

댓글