Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@johngrib
Created September 29, 2018 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johngrib/d09a0918ceeeda63f497d54ce871ff6c to your computer and use it in GitHub Desktop.
Save johngrib/d09a0918ceeeda63f497d54ce871ff6c to your computer and use it in GitHub Desktop.
turtle triangle and rectangle
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