Shared Flashcard Set

Details

06-Strings
Python for Informatics - Dr. Charles Severance
16
Computer Science
Not Applicable
08/09/2015

Additional Computer Science Flashcards

 


 

Cards

Term
counter
Definition
A variable used to count something, usually initialized to zero and then incremented.
Term
empty string
Definition
A string with no characters and length 0, represented by two quo- tation marks.
Term
format operator
Definition
An operator, %, that takes a format string and a tuple and generates a string that includes the elements of the tuple formatted as specified by the format string.
Term
format sequence
Definition
A sequence of characters in a format string, like %d, that specifies how a value should be formatted.
Term
format string
Definition
A string, used with the format operator, that contains format sequences.
Term
flag
Definition
A boolean variable used to indicate whether a condition is true.
Term
invocation
Definition
A statement that calls a method.
Term
immutable
Definition
The property of a sequence whose items cannot be assigned.
Term
index
Definition
An integer value used to select an item in a sequence, such as a character in a string.
Term
item
Definition
One of the values in a sequence.
Term
method
Definition
A function that is associated with an object and called using dot notation.
Term
object
Definition
Something a variable can refer to. For now, you can use “object” and “value” interchangeably.
Term
search
Definition
A pattern of traversal that stops when it finds what it is looking for.
Term
sequence
Definition
An ordered set; that is, a set of values where each value is identified by an integer index.
Term
slice
Definition
A part of a string specified by a range of indices.
Term
traverse
Definition
To iterate through the items in a sequence, performing a similar operation on each.
Supporting users have an ad free experience!