3STRINGS, LISTS, TUPLES, AND MAPS
In Chapter 2, we did some basic calculations with Python, and you learned about variables. In this chapter, we’ll work with some other items in Python programs: strings, lists, tuples, and maps. You’ll use strings to display messages in your programs (such as “Get Ready” and “Game Over” messages in a game). You’ll also discover how lists, tuples, and maps are used to store collections of things.
STRINGS
When programming, we usually call text a string. Think of a string as a collection of letters, and the term makes sense. All the letters, numbers, and symbols in this book could be a string, and so could your name ...
Get Python for Kids 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.