4 Turtles Flashcards

1
Q

Get turtle module

A

import turtle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Get canvas

A

wn = turtle.Screen()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Make turtle

A

alex = turtle.Turtle()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Move ahead

A

alex.forward(100)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Turn

A

alex.left(90)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Using alex.forward() or alex.left()

A

Invoke methods of alex

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Invoke method of alex

A

Use alex.forward() or alex.left()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Change canvas color

A

wn.bgcolor(“blue”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Change pen color

A

alex.color(“blue”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Change pen size

A

alex.pensize(3)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Close canvas

A

wn.exitonclick()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Loop var in for x in y:

A

x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Lift pen

A

alex.up()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Change shape

A

alex.shape(“turtle”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Change speed

A

alex.speed(3)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Stamping

A

alex.stamp()

17
Q

Counting backwards

A

range(x, y, -z)

18
Q

Filling with color

A

alex.begin_fill(), draw, then alex.end_fill()

19
Q

Write in window

A

alex.write(“hello”)