Lists
AP Computer Science Principles · Flashcards
AP COMPUTER SCIENCE PRINCIPLES · FLASHCARDS
Card 1
of 39
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
Identify the syntax: [x for x in list if x > 0]
QUESTION
How do you reverse a list in place?
QUESTION
What is the result of list.count(x)?
Tap to flip before you grade
ANSWER
The number of times
x
x
x
appears in the list. Returns frequency of occurrence for the specified element.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card