top of page
1. Printing
What is Printing?
Printing is the most straightforward command in Python. It allows a programmer (you) to display any output to the screen.
Input: print("Hello World!")
Output: Hello World!
How does it work?
The print function takes different data types in the parentheses and displays it as output on your screen. It can take characters, integers, strings, etc. (we will learn about these in the next lesson).
print("Hello World!")
Input
Function
How do you use it?
To use the print function, first type in a print statement.
print()
Next, type in your input between the parentheses.
print(12)
Finally, run the code to see the magic happen!
Output: 12
bottom of page