Hello everyone,
I've posted two examples of Python questions for the midterm on Moodle: https://moodle.epfl.ch/mod/folder/view.php?id=1307820, so you get an idea of the type and look of the questions we ask. Try solving them with a pen and paper on one side, and run the given code in Python on the other. If the results do not match, try to understand why that is the case. Of course, if you fail, you can ask questions, and we'll be happy to help you.
Have a lovely weekend,
Mirjana