Created
September 29, 2018 07:29
-
-
Save johngrib/d09a0918ceeeda63f497d54ce871ff6c to your computer and use it in GitHub Desktop.
turtle triangle and rectangle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import turtle as t | |
t.shape("turtle") # 이 부분 | |
t.fd(100) | |
t.lt(120) | |
t.fd(100) | |
t.lt(120) | |
t.fd(100) | |
t.left(120) | |
t.penup() | |
t.fd(250) | |
t.pendown() | |
t.fd(100) | |
t.lt(90) | |
t.fd(100) | |
t.lt(90) | |
t.fd(100) | |
t.lt(90) | |
t.fd(100) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment