In this lesson, we learned to display a single line of text using Python’s print()
function.
Let’s review what we have learned so far:
Code is a collection of one or more instructions.
Coding is the activity of putting together step-by-step instructions to solve a problem.
A Bit is the smallest unit of storage in computer memory that holds either a 1
or 0
.
A Processor (or a CPU) is the brain of the computer. It executes all the instructions embedded in our applications.
Python Interpreter translates Python instructions (high level) to 1
s and 0
s (low level).
As a Python coder, we are communicating with the Python Interpreter. We need to learn its grammar and know how it works to communicate efficiently.
A function is a set of instructions that perform a specific task, e.g., print
.
Several functions come bundled with Python. Since these functions are built right into the Python language, we call them built-in functions.
Input is a piece of data that is passed to a function.
In Python, a String is a word or group of words that begin and end with a quote, e.g., 'hello'
.
print
function displays the given input on the screen.