Unit 4 APCSP

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

1/9

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 6:29 PM on 11/14/24
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

10 Terms

1
New cards

What is a substring?

A substring is a string that is a part of an existing string.

2
New cards

What do compound conditionals test for?

Compound conditionals test that more than one condition is true at the same time.

3
New cards

How do you toggle a boolean variable?

Use the not operator to toggle a boolean between true and false.

4
New cards

What is the default steps per second in onStep for animations?

The default is 30 steps per second.

5
New cards

What is an integer (int) in Python?

Integers are numbers without a decimal point.

6
New cards

How do you convert a string to an integer in Python?

Use the int() function to turn the user’s input into an int.

7
New cards

What operator is used for string concatenation in Python?

The + operator is used to concatenate (combine) strings.

8
New cards

What does random.randint(low, high) do?

It gives you a number between and including low and high.

9
New cards

What should you include when using images that are not your own?

Include citations for any material you use that is not your own, including images and code.

10
New cards

How can you access the width and height properties of an image?

Use image.width and image.height to access the width and height properties.