Busy. Please wait.

show password
Forgot Password?

Don't have an account?  Sign up 

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
We do not share your email address with others. It is only used to allow you to reset your password. For details read our Privacy Policy and Terms of Service.

Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.

Remove Ads
Don't know
remaining cards
To flip the current card, click it or press the Spacebar key.  To move the current card to one of the three colored boxes, click on the box.  You may also press the UP ARROW key to move the card to the "Know" box, the DOWN ARROW key to move the card to the "Don't know" box, or the RIGHT ARROW key to move the card to the Remaining box.  You may also click on the card displayed in any of the three boxes to bring that card back to the center.

Pass complete!

"Know" box contains:
Time elapsed:
restart all cards

Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how


Chapters 5 & 6

The len() function does not work with ________. lists
You can assign an existing ________ a new value list element
It's possible to generate an error by invoking a list object's ______ method. remove()
(1, 2), (3, 4) is an example of a _________ nested sequence.
A dictionary key must be _______ immutable
A _______ cannot contain multiple items with the same key. dictionary
Unlike a tuple, a list is ____________________, meaning its elements can be changed. mutable
____________________ is a list method that adds a value to end of a list. append
____________________ is a list method that deletes the first occurrence of a value from the list remove
The ____________________ operator lets you test for the existence of a key in a dictionary. in
____________________ is a dictionary method that takes a key and retrieves its corresponding value from a dictionary. get
In a dictionary, an object used to look up another object key
A sequence inside another sequence. nested sequence
In a dictionary, an object that is returned when its corresponding key is looked up. value
A mutable collection of key-value pairs. dictionary
Automatically accessing each element of a sequence. sequence unpacking
A reference to an object, which has at least one other reference to it. shared reference
Quality that allows a list to be modified. mutability
A mutable sequence of any type. list
In a dictionary, a key-value pair. item
Quality that restricts a tuple from being modified. immutability
______ can do everything tuples can, plus more, because they can be modified lists
_______ are immutable, which makes them perfect for creating constants. tuples
It is a good idea to keep _________ to a minimum. experienced programmers rarely use sequences more than a level or two deep nesting
__________ are mutable. lists
When several variables refer to the same _______ value, they share the same reference. mutable
You can check for the existence of a key with the ______ operator in
You can check for the existence of a key by using the dictionary __________ method. get
A function ____________________ is code that defines what a new function does. definition
A(n) ____________________ is a string that documents a function. docstring
A function ____________________ is the first line of code that defines a function. header
Software ____________________ is leveraging existing software in a new project. reuse
A(n) ____________________ parameter value is a value that a parameter gets if no value is passed to it. default
A value returned by a function. return value
To hide a global variable inside a scope by creating a local variable of the same name. shadow
A mechanism that lets you think about the big picture without worrying about the details. abstraction
A name inside the parentheses of a function header that can receive a value. parameter
A variable that can be accessed in any part of a program. global variable
An argument passed to a specific parameter using the parameter name. keyword argument
An area of a program that's separate from other areas. scope
A value passed to a function parameter. argument
A variable that can be accessed only in the scope in which it was created. local variable
A technique of keeping independent code separate by hiding the details. encapsulation
_______________ increases company productivity, improves software quality. Provides consistency across software products and improves software performance. software reuse
__________ can make programs less confusing. global constants
Created by: galvanl