Unit 2: Expressions
Students who complete this unit will demonstrate that they can:
- Define the terms:
- expression
- statement
- literal
- operator
- overflow
- escape sequence
- Identify and describe uses of primitive data types.
- Write programs that use primitive data types.
- Use and write assignment statements
- Use and write numeric expressions
- Perform computations involving modular arithmetic.
- Describe the three defining properties of a Python object:
- identity - unique memory location (
id).
- value - what bits are stored there
- type - how those bits are interpreted (as
int, float, str, …)
- Identify valid and invalid identifiers
- Use
int() and float() to change strings to numbers
- Use escape characters in string literals
Contents