In preparation for the Python exam, please review the list of course competencies and note any that you have learned or need more work to master.
This mid-term exam covers concepts from Python programming. Below is review material on numeric and scientific Python with a video tutorial playlist. The Jupyter notebook contains the solutions to each of the problems.
Generative AI is a strong exam-prep partner - and is not permitted during the exam itself. The point of these prompts is to make sure the skills are in your head, not in the chat history. Work the practice exam notebooks on your own first, then use the prompts to find and close gaps.
"Act as my exam coach for a Python programming midterm covering: variables and types, conditionals, functions, lists and numpy arrays, loops, plotting with matplotlib, pandas DataFrames, debugging, and file import/export. Quiz me with 8 questions, one at a time, mixing predict-the-output snippets, find-the-bug snippets, and write-a-short-function tasks. I will answer without running code. Grade each, keep score, and finish with a ranked list of my weakest topics and one practice task for each."
"Here is my handwritten solution to a practice problem: {paste your code and the problem statement}. Do not rewrite it. Grade it like an exam: does it run (trace it), does it handle the edge case, is there a simpler idiom I should have used? Then give me a NEW problem of the same type with different specifics, and grade my attempt at that one too."
"Generate a fresh 30-minute practice exam (4 problems) at the level of an introductory engineering Python course: one predict-the-output, one debug-this-code, one loop/accumulator problem with engineering data, one plot or file-import task. Give me the problems only; after I submit answers, grade them and show model solutions."
Tip: Close the loop by hand: for every quiz question you miss, write the corrected snippet yourself and run it. Reading the AI's correct answer feels like learning; typing and running your own is learning. During the exam you will have only what you practiced retrieving without help.