Lesson 820 of 1524
Strings
Logical operators can be used to compare two string values.
Practice this chapterLogical operators can be used to compare two string values. String comparison is done by comparing corresponding ASCII values of characters in the order of appearance in the string
String indexing is used to access a character or a sequence of characters in the string
string — a sequence of characters.
Be able to compare strings using logical and membership operators; use lower() and upper() string methods to convert string values to lowercase and uppercase characters; use string indexing to access characters in the string.
Worked example
What does “string” mean in Strings?
- 1Use the wording this chapter gives for string.
- 2The book says: a sequence of characters.
- 3Keep the answer tied to this term.
Result: a sequence of characters
Why. That is the meaning this chapter gives for string.
Answer with the meaning this chapter gives. A nearby idea from the same book is a different term.
Practice margin
This chapter
A fresh set from this chapter only. Choose 10 or 20. Multiple choice and fill-in, with no repeat inside the set.