본문 바로가기

기록/Python

두근두근 파이썬 1장 연습문제

1.

print("환영합니다\n파이썬의 세계에 오신 것을 환영합니다.\n파이썬은 강력합니다.") 

2.

print("반갑습니다. 파이썬")
print(2*3/10)
print("hello","world","!!!")

3.

time = 24
day = 1
week = 7*time
print("일주일은",week,"시간이고",day,"일은",time,"시간이다")

 

4.

shape('turtle')
fd(100)
left(90)
fd(100)
right(90)
fd(100)
right(90)
fd(100)
left(90)
fd(100)

5.

shape('turtle')
width(10)
fd(100)
left(90)
fd(100)

 

 

6.

shape('turtle')
color('blue')
fd(100)

7.

shape('square')
fd(100)

8.

shape('turtle')
fd(100)
up()
goto(0,200)
down()
fd(100)

'기록 > Python' 카테고리의 다른 글

두근두근파이썬 4장 연습문제  (0) 2019.05.25
두근두근파이썬 3장 연습문제  (0) 2019.04.04
두근두근파이썬 2장 연습문제  (0) 2019.04.04
[python] split()  (0) 2019.04.03
Python/GUI/ wxFormBuilder  (0) 2018.05.31