cool picture

printing

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 marks if you want to add extra text afterwards.

Key Points

- print() displays output in the console.
- Used to show text or values.
- Can display variables.
- Variables go outside quotation marks when mixing with text.
- Extra text can be added before or after variables.