Final Study Guide
This is simply a guide of topics that I consider important for the final. I don’t promise to ask you about them all, or about any of these in particular; but I may very well ask you about any of these, as well as anything we discussed in class, in the discussion section, or that is in the text.
- Basics of programming
- Programming languages: high-level, low-level
- Syntax errors, semantic errors
- Programming in Python
- IDLE
- Comments
- Basics of Python
- Variable names
- Keywords
- Data types (integer, float, string, boolean)
- Expressions
- Arithmetic operators; precedence
- String operators
- Logical operators
- Relational operators and Boolean values
- Type conversion functions (int, float, str, list, bool)
- Input and output
- input function
- print function; end= in the print function
- Statements
- Assignments
- for loop; range
- while loop
- if, if … else, if … elif … else, nested ifs
- Functions
- Defining them
- Parameter lists and how they work
- Returning a value; return statement
- Parameters and arguments
- Scope (local vs. global, etc.)
- Recursion
- Memos in recursive functions
- Sequences
- Strings, string operations (+, *), string methods
- Lists, list operations (+, *), list methods
- Mutable vs. immutable
- Indexing (var[position])
- Slicing (var[start:end])
- Membership (in)
- References, aliasing
- Dictionary
- What it is
- Methods for dictionaries
- How to use a dictionary
- File I/O
- Opening and closing files
- Reading and writing files
- Exceptions
- Interpreting error messages
- Catching them (try … except … else … finally)
- Common exceptions