rememberdo not type the numbers or the periods at the beginning of each line (that' just for reference in this book import pygamesys from pygame locals import pygame init( displaysurf pygame display set_mode(( ) pygame display set_caption('hello world!' while truemain game loop for event in pygame event get() if event type =quit pygame quit( sys exit( pygame display update(when you run this programa black window like this will appearyayyou've just made the world' most boring video gameit' just blank window with --hello world!|at the top of the window (in what is called the window' title barwhich holds the caption textbut creating window is the first step to making graphical games when you click on the button in the corner of the windowthe program will end and the window will disappear calling the print(function to make text appear in the window won' work because print(is function for cli programs the same goes for input(to get keyboard input from the user pygame uses other functions for input and output which are explained later in this for nowlet' look at each line in our --hello world|program in more detail setting up pygame program the first few lines of code in the hello world program are lines that will begin almost every program you write that uses pygame import pygamesys email questions to the authoral@inventwithpython com