Programming ConceptsLesson 11Free preview
Strings
This lesson is part of Intro to Programming · All levels
Summary
This lesson discusses strings as a type of data that stores text, usually a set of characters in a quotation mark. Strings support operations such as combining (concatenation), taking parts, finding positions, and changing uppercase/lowercase. Because strings are immutable in many languages, any operation always produces a new string.
Key points
- String stores text and writes it with quotation marks
- Concatenation combines two or more strings
- Inbuilt functions of calculating length, searching, and changing letters
- Strings are immutable in many languages so the operation produces a new string
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.