Shared Flashcard Set

Details

Chapter 8 Lists
Preparation for exam II
9
Computer Science
Undergraduate 2
11/13/2017

Additional Computer Science Flashcards

 


 

Cards

Term
list
Definition
a container, which is an object that groups related objects together.
Term
list() function
Definition
accepts a single iterable object argument, such as a string, list, or tuple, and returns a new list object.
Term
index
Definition
an integer corresponding to a specific position in the list's sequence of elements.
Term
mutable
Definition
able to grow and shrink without the program having to replace the entire list with an updated copy
Term
list operations
Definition
[image]
Term
list method
Definition
perform a useful operation on a list such as adding or removing elements, sorting, reversing, etc.
Term
for loop
Definition
for my_var in my_list:
# Loop body statements go here
Term
None
Definition
a placeholder for no input
ex. max_even = None
Term
enumerate()
Definition
results in the variables pos and token being assigned the current loop iteration element's index and value, respectively.
Supporting users have an ad free experience!