Python Programming - Objects and Turtle Graphics

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/24

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering software objects, object references, memory management, list assignment vs copying, and Python turtle graphics.

Last updated 4:17 PM on 9/22/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

25 Terms

1
New cards

Software Object

The fundamental component of object-oriented programming in Python. An object contains attributes (data stored in instance variables) and behaviors (actions provided by methods).

2
New cards

Attributes

The properties or data that a software object knows or holds, which are stored in instance variables.

3
New cards

Behaviors

The actions that a software object can perform, which are defined through a set of functions called methods.

4
New cards

Dot Operator (.)

An operator used in object-oriented programming to select and access a member or method of a given object, such as calling names_list.sort().

5
New cards
<p>Object Reference</p>

Object Reference

A stored value that points to the specific location of an object in memory.

6
New cards

Dereferenced Value

The actual underlying value stored in memory that a reference points to.

<p>The actual underlying value stored in memory that a reference points to.</p>
7
New cards

id() Function

A built-in Python function that returns the reference value (memory address location) where an object is stored.

8
New cards

Garbage Collection

An automatic process in Python that determines which memory locations are no longer referenced by any variable and deallocates them.

9
New cards

Memory Deallocation

The process of changing a memory location's status from "currently in use" to "available for reuse."

10
New cards
<p>Shallow Copy</p>

Shallow Copy

A copy operation that duplicates the top level of a structure but leaves nested sublists or lower-level structures shared between the original and the new list.

11
New cards

List Constructor list()

A built-in constructor function that can be used to create a shallow copy of an existing list (e.g., list2 = list(list1)).

12
New cards
<p>Deep Copy</p>

Deep Copy

A copy operation that creates a complete, independent copy of an entire list structure, including all nested sublists.

13
New cards

deepcopy() Method

A method provided by Python's standard copy module used to create a deep copy of a structure (e.g., list2 = copy.deepcopy(list1)).

14
New cards

Turtle Graphics

A system provided by the standard turtle library module in Python for controlling graphical entities ("turtles") on a screen with (x,y)(x, y) coordinates.

15
New cards

Default Turtle State

The initial state of a newly created turtle, positioned at the center coordinate (0,0)(0, 0) with an arrowhead shape and a heading pointing right at 0°0^°.

16
New cards

Absolute Positioning

Moving a turtle directly to a specified (x,y)(x, y) coordinate on the screen using methods such as setposition(x, y).

17
New cards

Relative Positioning

Moving or turning a turtle relative to its current position and orientation using methods like forward(), left(), and right().

18
New cards

Turtle Heading

The orientation attribute of a turtle specified in degrees, where 0°0^° points right, 90°90^° points up, 180°180^° points left, and 270°270^° points down.

19
New cards

penup() and pendown() Methods

Pen attribute methods that determine whether a turtle draws lines as it moves (pendown()) or moves across the screen without drawing (penup()).

20
New cards

pensize() Method

A turtle method used to set the line width in pixels when drawing.

21
New cards

pencolor() Method

A turtle method used to select drawing line colors using color string names or RGB component values.

22
New cards

register_shape() Method

A turtle screen method used to register custom turtle shapes using a tuple of polygon coordinates or a .gif image file.

23
New cards

stamp() Method

A turtle method that imprints an image of the turtle's current shape onto the canvas at its present position.

24
New cards

speed() Method

A method used to set a turtle's movement speed using integers from 00 to 1010 or descriptive strings like 'fastest' (00), 'fast' (1010), 'normal' (66), 'slow' (33), and 'slowest' (11).

25
New cards

Turtle() Constructor

The constructor method used to instantiate new individual turtle objects, enabling multiple turtles to exist on screen concurrently.