pygame basics just like how python comes with several modules like randommathor time that provide additional functions for your programsthe pygame framework includes several modules with functions for drawing graphicsplaying soundshandling mouse inputand other things this will cover the basic modules and functions that pygame provides and assumes you already know basic python programming if you have trouble with some of the programming conceptsyou can read through the --invent your own computer games with python|book online at the --invent with python|book also has few covering pygame you can read them online at once you learn more about pygameyou can view the other modules that pygame provides from the online documentation at gui vs cli the python programs that you can write with python' built-in functions only deal with text through the print(and input(functions your program can display text on the screen and let the user type in text from the keyboard this type of program has command line interfaceor cli (which is pronounced like the first part of --climb|and rhymes with --sky||these programs are somewhat limited because they can' display graphicshave colorsor use the mouse these cli programs only get input from the keyboard with the input(function and even then user must press enter before the program can respond to the input this means realtime (that iscontinuing to run code without waiting for the useraction games are impossible to make pygame provides functions for creating programs with graphical user interfaceor gui (pronounced--gooey||instead of text-based cliprograms with graphics-based gui can show window with images and colors source code for hello world with pygame our first program made with pygame is small program that makes window that says --hello world!|appear on the screen open new file editor window by clicking on idle' file menuthen new window type in the following code into idle' file editor and save it as blankpygame py then run the program by pressing or selecting run run module from the menu at the top of the file editor