Chapter 2Input, Processing, and Output

Getting input from the user and converting it to something meaningful is one of the fundamental pieces of programming. Software developers are always turning data into information that can be used to make decisions. That data may come from the keyboard, a mouse, a touch, a swipe, or even a game controller. The computer has to react to it, process it, and do something useful.

The exercises in this chapter will help you get acquainted with how to get input from the user and process it to produce output. You’ll build up strings, do a little math, and get your feet wet with the programming language you’re using. They’re simple problems, but they’ll help you build up your confidence as a programmer; the problems ...

Get Exercises for Programmers 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.