Programming using python KEY TERMS Flashcards

1
Q

Python interpreter

A

A computer program that executes code written in the Python programming language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

interactive interpreter

A

A program that allows the user to execute one line of code at a time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Code

A

a common word for the textual representation of a program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

line

A

a row of text.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does a PROMPT do?

A

indicates the interpreter is ready to accept code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a statement

A

is a program instruction/ a line to execute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are expressions

A

code that return a value when evaluated; for example, the code wage * hours * weeks is an expression that computes a number.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How is a new variable created

A

By creating an assignment using the = symbol, such as salary = wage * hours * weeks, which creates a new variable called salary.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the The print() do

A

function displays variables or expression values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do you make comments and what is the purpose?

A

’#’ characters denote comments, which are optional but can be used to explain portions of code to a human reader.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly