Lesson 7. Introducing string objects: sequences of characters
After reading lesson 7, you’ll be able to
- Understand what string objects are
- See what values a string object can have
- Do some basic operations using string objects
Working with sequences of characters is common. These sequences are known as strings, and you can store any sequence of characters inside a string object: your name, your phone number, your address including the new lines, and so on. Storing information in a string format is useful. You can do many operations after you have data represented in a string. For example, if you and a friend are both doing research for a project, you can take notes on separate concepts and then combine your findings. If you’re writing an essay ...
Get Get Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.