A Matter of Interpretation
In the introduction to this unit, we mentioned that Python is an interpreted language(解释执行语言) (meaning it runs using an interpreter).
For now, think of the interpreter as a program that takes the code you write, checks it for syntax errors, and executes the statements in that code, line by line. It works as a go-between for you and the computer and lets you know the result of your instructions to the machine.
Tell Python to assign the value True
to the variable spam
and False
to the variable eggs
.