repl.it
@tonomoshia1/

first_turtle

Python (with Turtle)

No description

fork
loading
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import turtle

window_color = input("What color should the screen be?")

wn = turtle.Screen()
wn.bgcolor(window_color)        # set the window background color

turtle_color = input("What color should the turtle be?")
                    
tess = turtle.Turtle()
tess.color(turtle_color)              # make tess blue

pen_size = int(input("What size should the turtle's tail be?"))
               
tess.pensize(pen_size)                 # set the width of her pen

tess.forward(150)
tess.left(120)
tess.forward(150)

# wn.exitonclick()                # wait for a user click on the canvas
result
console
?