The print() function is used to output text or other information to the console. For example, print("Hello, World!") will display the text "Hello, World!" on the screen. you can also use the print() function to print variables. if you want to print a variable with some other words you must put the variable outside the quotation marks and then start quotation mark if you want to add extra text afterwords.