Unit 3: Data Types
Students who complete this unit will demonstrate that they can:
- Distinguish sequence types from other types
- Use square brackets to index into a string
- Use and recognize string concatenation
- Create and manipulate lists using square brackets
- Use basic list methods and functions including:
append(); pop(); remove(); + for concatenation; len(); min(); max(); sum().
- Compare and contrast string, lists, tuples vs. dictionaries
- Create and manipulate dictionaries (add new entries, update values, remove entries)
- Use the math module to perform calculations
- Be able to convert numbers between base 2 (binary) and base 10 (decimal)
- Explain how data is represented in a machine
- Explain how fixed-length number representations affect accuracy and precision.
- Compare representations of integers to floating point numbers
- Describe underflow, overflow, round off, and truncation errors in data representations.
- Explain the reasons for using alternative formats to represent numerical data.
Contents