This exercise is designed to ensure that you are able to follow all of the steps that will be required for the remaining exercises and the assignments. Your goal is to write a Python expression that evaluates to the number 42 (hint: this expression can be very simple!). Follow the following process, which you can use for the first few exercises:

Evaluating our simple expression in an online REPL
Figure 1. Evaluating our simple expression in the Python Morsels REPL
  1. Open an online Python interpreter (e.g., as shown in Figure 1 to the right).

  2. Experiment with various simple Python expressions until you find one that evaluates to 42.

    1. Any expression that evaluates to 42 is fine…​ there are literally an infinite number of correct answers!

    2. You just need to write a mathematical expression. For those who’ve used Python before, I don’t want a script or a function, I don’t want you to print anything, just give me an expression.

  3. Copy your Python code into an empty file using a text editor; save it as exercise0.py.

  4. Upload your new Python file to Gradescope.

Submitting this exercise will help familiarize you with the process of submitting exercises (worth a few marks) and assignments (worth more marks). Many students encounter non-programming errors on their first attempt (e.g., submitting a Microsoft Word file instead of a Python file), so it’s worth figuring out the process now.