Windows: Click the Windows Start button, and type “IDLE”. Then click the IDLE icon. Mac & Linux: Open the Terminal. Then type {[kbd|python}} and press Enter. If you are using a text editor, be sure to save the text file as a Python file with the “. py” file extension.

Running a program with the print function without anything in the parenthesis will produce a blank newline character. This will produce a blank line, similar to a line break when you press “Enter. " You can use multiple blank “print()” functions to create vertical space.

String: A string is a series of letters and/or characters that usually make up a word or phrase. When printing a string, place the words or phrases you want to print inside quotation marks inside the parenthesis. For example, print(“Hello World”). Integer: An integer is just a number. It can be a whole number, a decimal, an equation, or a list of numbers (numbers in a list should be separated by a comma “,”). Integers do not need to be placed inside quotation marks. For example, print(42). Variable: A variable is a string or an integer that is pre-defined by the program (i . e, “x=42”). Often, a variable is defined by the user. For example, if you are creating a program that asks the user to enter their name, their name may be stored as a variable called “name. " To print a variable simply put the name of the variable in the parenthesis. For example, print(name).

Objects: Objects are any string, integer, or variable you want to print. There can be more than one object printed at a time. Separate multiple objects with a comma (”,”). Separators: Separators are any character you want to use to separate printed objects. For example, if you want to separate each object with a dash, you would enter sep="-" after the objects you want to print. By default, objects will be separated with a hyphen (’). End: This specifies which characters you want to place at the end of the printed statement. By default, printed statements end with a “/n”, which creates a line break. For example, if you want to end a statement with a colon, you would enter end=":" after your separators. File: This specifies which file system you want to write the printed statement to. By default, printed statements will be printed to the standard output system (sys. stdout), which will print the statement in your terminal. If you want to write the printed statement to a different file system, you would use this parameter to specify it. Flush: This is used in printing a boolean. A printed statement can be “flush” (true) or “buffer” (false). By default, a printed statement is false.