June 2021
Beginner
208 pages
3h 50m
English
This chapter could have had “and Functions” added to its title, but the title was already long enough. In this chapter, you will first explore and play with the various ways of representing data and adding some structure to your programs in Python. You will then put everything you learned together into the simple game of Hangman, where you have to guess a word chosen at random by asking whether that word contains a particular letter.
The chapter ends with a reference section that tells you all you need to know about the most useful built-in functions for math, strings, lists, and dictionaries.
No, this is not the Physics kind of String Theory. In programming, a string is a sequence of characters ...