Unit 7 - Module 3 - String Data Flashcards
What is data consisting of an ordered squence of characters?
String Data
WHat input converts objects into a string?
str()
What function returns the number of elements in an object?
len()
What is the process of joining two strings together?
String Concatenation
What is a function that belongs to a specific data type?
Method
What returns a copy of the string in all uppercase letters?
.upper()
What returns a copy of the strings in all lowercase letters?
.lower()
What is a number assigned to every element in a sequence that indicates its position?
Index
What function finds the first occurrence of the input in a string and returns its location?
.index()
What cannot be changed after it is created and assigned a value?
Immutable
What do you call combining two lists into one by placing the elements of the second list directly after the elements of the first list?
List Concatenation
What adds an element in a specific position inside a list?
.insert()
What removes the first occurrence of a specific element in a list?
.remove()
What is a set of rules that solves a problem?
Algorithm
What adds input to the end of a list?
.append()