Programming using python KEY TERMS Flashcards
Python interpreter
A computer program that executes code written in the Python programming language.
interactive interpreter
A program that allows the user to execute one line of code at a time.
Code
a common word for the textual representation of a program
line
a row of text.
What does a PROMPT do?
indicates the interpreter is ready to accept code
What is a statement
is a program instruction/ a line to execute
What are expressions
code that return a value when evaluated; for example, the code wage * hours * weeks is an expression that computes a number.
How is a new variable created
By creating an assignment using the = symbol, such as salary = wage * hours * weeks, which creates a new variable called salary.
What does the The print() do
function displays variables or expression values.
How do you make comments and what is the purpose?
’#’ characters denote comments, which are optional but can be used to explain portions of code to a human reader.