Chapter 9 - Definitions Flashcards

1
Q

Define collection data type

A

A data type in which the values are made up of components, or elements that are themselves values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Define default value

A

The value given to an optional parameter if no argument for it is provided in the function call

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Define dot notation

A

Use of the dot operation, “.”, to access functions inside a module, or too access methods and attributes of an object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Define immutable data type

A

A data type whose values cannot be changed. Modifying functions create a totally new object that does not change the original one

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define index

A

A variable or value used to select a member of an ordered collection, such as character from a string, or an element from a list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Define optional parameter

A

A parameter written in a function header with an assignment to a default value which it will receive if no corresponding argument is given for it in the fun call

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Define slice

A

A part of a string (substring) specified by range of indices. More generally, a subsequence of any sequence type in Python can be created using the slice operator (sequence[start:stop])

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Define traverse

A

To iterate through the elements of a collection, performing a similar operation on each

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Define whitespace

A

Any of the characters that move the cursor without printing visible characters. The constant string.whitespace contains all the white-space characters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly