Printing is a function that is used to "print out" a string on the terminal.
We can print "Hello world" on the terminal with the following code:
print("Hello World")
print - is the statement of the print function.
("Hello World") - is the string; it's inner text is changable.
Functions are lines of code that can be called upon to be executed. To define a function we must write the following:
def Function_Name(value): 2.
1. print(value += 1)
To write the code we want in the function we must seperate it with four spaces.
Functions cannot get values outside of the defined space, so we must define the values in the two brackets next to the function name.
To call upon a function to be executed, we must write the function name and give it its values (if it has any defined):
Function_Name() Function_Name( 1 )
The first function is a normally defined function that has no defined values.
The second function is a function with a defined value for the value: "value".