2WRITING PROGRAMS

image

Now let’s see what Python can do with text. Almost all programs display text to the user, and the user enters text into programs through the keyboard. In this chapter, you’ll make your first program, which does both of these things. You’ll learn how to store text in variables, combine text, and display text on the screen. The program you’ll create displays the greeting Hello world! and asks for the user’s name.

Get Invent Your Own Computer Games with Python , 4th Edition 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.