Built in Function
Animations & Frames
Custom Functions
Strings & Text
Review
100

What is a built-in function?

A ready-to-use command that performs a specific task.

100

What does add_frame(m) do

Adds a frame to an animation

100

How do you define a new function in Python?

Using def function_name():

100

What is a string in Python?

Text enclosed in quotes

100

What happens if you use background() after heart()

(It covers the heart with background color.)

200

Give an example of a built-in function used in imagi.

(background(), heart(), character())

200

Why would you use clear() before adding new characters?

To avoid overlapping designs.)

200

What are the two main parts of a function?

Header and body

200

What does concatenation mean?

Joining strings together.)

200

You try to call a function but get an error saying “name not defined.” What likely went wrong?  

You forgot to define the function first with def, or misspelled the name.

300

What’s the difference between a function and an argument?

(A method or argument belongs to an object, a function doesn’t.)

300

What’s one way to replace clear()

Use a background color parameter

300

What does it mean to “call” a function?

To run or use it after defining it.)

300

What is "Hi! " * 3 equal to?

(“Hi! Hi! Hi! ”)

300

Give an example of combining lessons: how can a function use a string  

(Define a function that displays scrolling text.)  

400

What does the argument in a function do

(It provides extra information the function needs.)

400

What is the purpose of an animation loop?

To show motion by cycling through frames.)

400

In the dog example, what parameter changes the eyes?

eye_color

400

What does scrolling_text(name, Y) do?

(Scrolls text in yellow.)

400

Why are built-in functions important in coding?

They save time and make code easier to write.)

500

Which function clears all pixels?

(clear()

500

What function sets the color behind all pixels?

(background(color))

500

Why do we use functions in coding?

To organize code, reuse designs, and simplify repetition.)

500

What’s the difference between a variable and a string

(A variable stores data; a string is a type of data.)

500

If you write background(G), what does the “G” stand for?  

The color green — it’s the argument given to the function.

M
e
n
u