Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Challenge 1
- import turtle
- elena = turtle.Turtle()
- elena.penup()
- def line(words, horiz_pos = -10):
- x,y = elena.pos()
- elena.goto(max(horiz_pos, -100), y)
- elena.write(words)
- x,y = elena.pos()
- elena.goto(x, y - 25)
- def by(author):
- x,y = elena.pos()
- elena.goto(x + 70, max( -100, y -30))
- elena.write(author)
- x,y = elena.pos()
- elena.goto(0, y)
- elena.color('indigo')
- elena.goto(-80, 180)
- line("*Twinkle Twinklw Little Star*")
- elena.color('blue')
- elena.goto(-50, 150)
- line("Twinkle twinkle little star,")
- line("how I wonder what you are.")
- line("Up above the earth so high,")
- line("Like a diamond in the sky,")
- line("Twinkle twinkle little star,")
- line("how I wonder what you are")
- elena.color('magenta')
- elena.goto(-50, -10)
- line("Twinkle twinkle little star,")
- line("how I wonder what you are.")
- line("Shining through the stars so bright,")
- line("Like a diamond in the night,")
- line("Like a diamond in the night,")
- line("how I wonder what you are")
Add Comment
Please, Sign In to add comment