I am new to turtle

I have just started learning turtle and my assignment was to draw a basic smiley face using turtle (no fill just circle for face and two circles for eyes). I was using t.penup and then t.forward but it still drew a line. Does anyone now how to move the turtle without drawing a line?

My turtle on replit is not working so I can’t insert the link.
(the code snippit may not work on replit because I wrote it in VSC)

import turtle

t=turtle.Turtle()
t.circle(125)
t.penup 
t.left(90)
t.forward(187.5)
t.left(90)
t.forward(62.5)
t.pendown
t.circle(15)

:wave: Welcome back, @muzeD1!

This is because you’re not calling the penup and pendown functions. Try this:

t.circle(125)
t.penup()
t.left(90)
t.forward(187.5)
t.left(90)
t.forward(62.5)
t.pendown()
t.circle(15)

Thank you! I did not know that you had to put parenthesis after the penup function.

1 Like

You have to put parentheses after any function you want to call. :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.