# Values, variables and expressions

> A concrete piece of data such as a number or string.

Course: [Python programming foundations](https://studybrix.com/en/courses/python-programming/index.md)
Level: university
Prerequisites: Basic computer literacy.

## Notes

### Value

A concrete piece of data such as a number or string.

### Variable

A name that refers to a value in a program.

### Expression

Code that evaluates to a value.

### Type

A category that determines operations and representation for a value.

## Practice questions

### 1. Which term best matches this description: A concrete piece of data such as a number or string.

A. Type
B. Expression
C. Value
D. Variable

Answer: Value

Explanation: Value is the matching concept in this lesson.

### 2. Which term best matches this description: A name that refers to a value in a program.

A. Value
B. Expression
C. Variable
D. Type

Answer: Variable

Explanation: Variable is the matching concept in this lesson.

### 3. Which concept would you apply first in a situation where code that evaluates to a value.

A. Expression
B. Variable
C. Value
D. Type

Answer: Expression

Explanation: The scenario directly calls for Expression.

### 4. Name the concept described as: A category that determines operations and representation for a value.

Answer: Type

Explanation: The intended concept is Type.

### 5. Which statement about Value is most accurate?

A. Code that evaluates to a value.
B. A concrete piece of data such as a number or string.
C. A name that refers to a value in a program.
D. A category that determines operations and representation for a value.

Answer: A concrete piece of data such as a number or string.

Explanation: The definition in the lesson notes gives the required condition.

### 6. Explain one important difference between Value and Variable.

Sample answer / marking guidance: Value: A concrete piece of data such as a number or string. Variable: A name that refers to a value in a program.

Explanation: Credit a clear distinction using both definitions and an appropriate example if supplied.

### 7. Give a short example showing how Expression would be used in practice.

Sample answer / marking guidance: A valid example should demonstrate this idea: Code that evaluates to a value.

Explanation: Credit a relevant scenario that applies the concept rather than merely naming it.

### 8. Summarize why Type matters in the lesson “Values, variables and expressions”.

Sample answer / marking guidance: Type matters because A category that determines operations and representation for a value.

Explanation: Credit the core purpose, scope and any important limitation from the notes.

## Further reading

- https://docs.python.org/3/tutorial/

Original AI-assisted educational draft; not independently teacher-reviewed. References support further study, not copied exercises, affiliation or curriculum accreditation.
