What is a string?
An ordered sequence of characters, which can be letters, numbers, or symbols.
What is string indexing?
Accessing parts of a string using an index that begins at 0. For example, if aStr = “Python”, aStr[0] will return “P”.
What is string slicing (e.g., aStr[0:4])?
This will return a portion of the string, including the character at the first index and not including the character at the last index. For aStr = “Python”, aStr[0:4] returns “Pyth”.
What is a len() subprogram?
A built-in subprogram that returns an integer representing the length of the string (the number of characters it contains).
What does Immutability of Strings mean?
The concept that once a string has been assigned to a variable, its value cannot be changed. However, the variable can be reassigned a new value.
What is String Concatenation?
The process of joining strings together using the + operator.
What is .upper() and .lower() methods?
Operators that return a modified string with all letters converted to upper or lower case, respectively, without changing the original string.
What is String Slicing with a Step?
An optional third parameter in string slicing that determines the step size when extracting characters. By default, it is set to 1.
What is .split() method?
A method used when a string is made of several words to break it down into a list of separate words.
What is a List Data Type?
An ordered, mutable sequence of elements.
What is typecasting?
A method used to change the data type of a variable to match the operation you want to perform. In Python, you can use built-in functions like int() , str() , float() ,