Skip to main content

Final Exam Topics

Fall 2026 Final

Here’s the extensive list of topics for the Final Fall 2026

🔵 Mandatory topics

These topics should be thoroughly studied.

Variables and Data Types

  • Use variables to store program data
  • Avoid hard-coding values in logic by using variables
  • Recognize the various basic data types: str, int, float and bool
  • Perform conversions between float, int and str
  • Evaluate a boolean variable from an expression.

String Handling

  • Create an f-string
  • Format float precision in an f-string

Operators

  • Evaluate the order of operations combining multiple operators.

Arithmetic operators

  • Use +, -, *, /, //, % to apply math formulas
  • Evaluate expressions using arithmetic operators on the basic types str, int,float

Assignment operators

  • Use = to assign a value to a variable
  • Evaluate a variable re-assignment using the variable itself (e.g. x = x + 1)

Comparison operators

  • Use >, >=, <, <=, ==, !=

Logical operators

  • Use and, or, not
  • Evaluate a logical expression combining comparison and logical operators (e.g. x > y or (y ==2 and x!=5) or (not a_bool))

Conditions

  • Use if statements
  • Use if/elif/else statements
  • Nested consitional statements

Loops

  • Use a for loop with range()
  • Use break

Functions

IO functions

  • Use print()

Math functions

  • Use math.ceil(),math.sqrt(), math.pi, math.sin()
  • Note: You do not need to memorize all the math functions. They will be provided in the reference sheet. You should know how to use them and what they do.

Custom Function

  • Define a function
  • Invoke/call a function
  • List of parameters
  • Know that variables defined inside a function are local to that function (not accissible from outside the function)
  • return a value from a function
  • Know that the function ends when it reaches a return statement or the end of the function body

Lists

Simple Lists

  • Create a list with starting values
  • Create an empty list
  • Access an element of a list by index using []
  • Modifying an element of a list by index using []
  • Negative indices -1 for the last element, -2 for the second to last, etc.
  • Use len() to find the length of a list
  • Add an element to a list with .append()
  • Remove an element with .pop()
  • Loop over a list using a for loop
  • Find if an element is present in a list with in

Paired Lists

  • Loop over paired lists

🟠 Optional topics

These topics could be helpful for some questions. You may optionally use them but there’s a way to solve all problems without having to use them.

Assignment operators

  • Use Augmented assignment operators: +=, -=, *=, /=, //=, %=

Functions

  • Use a default parameter value in a function definition

While Loops

  • Use a while loop

Other loop concepts

  • Use continue to skip the current iteration of a loop
  • Use range(start, stop, step)

Additional List topics

The following topics are not mandatory but may be helpful for some questions.

  • Use the functions sum(), max(), min()
  • Use the methods .index(),.insert(),.sort(), .reverse(), .remove()
  • Loop over the elements and indices of a list with enumerate()
  • Loop over paired lists with zip()

⚪ Not on the Final

These topics are not included in the final. You can safely skip studying them:

  • The input() function
  • String operations (.replace(), .split(), f-string formatting beyond float precision)
  • Type hinting on a function signature or variable definition
  • Looping over characters in a string
  • Slicing a list or string to make a sublist or substring
  • Turtle Graphics
  • Creating plots or scatters with Matplotlib
  • Styling graphs
  • CSV Files/ Text files
  • Numpy fitting polynomial functions
  • Files & Folders
  • Setting up Thonny, debuging tools
  • Installing packages
  • Using np.array() instead of lists to apply a formula to a list of numbers
  • Using np.linspace() to create an array of numbers from start to stop with a fractional step