O'Reilly logo

Invent Your Own Computer Games with Python , 4th Edition by Al Sweigart

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required