Computer Setup Activity Due Friday September 22, 11:59PM EST

For this activity, you will do the following:

  • Learn to download Thonny on your laptop
  • Learn to run a python program using Thonny
  • Learn to submit a python file to gradescope for grading

Part 1: Download Thonny

Begin by downloading Thonny from this website.

Next, go through the installer program.

Part 2: Running a Program

Download the mystery program and open it in Thonny. You aren’t expected to know what the program is doing,1 but you are expected to run it!

Run the program by clicking the green play button in Thonny. When asked, type in your Middlebury email address. The program will print out a secret code; everyone in the class will have a different secret code which will be based on your email.

Part 3: Create a new Program

In Thonny, create a new program called submission.py. Your file should look like this:

email = "YOUR_MIDDLEBURY_EMAIL_HERE"

secret_code = "YOUR_SECRET_CODE_HERE"

Replace YOUR_MIDDLEBURY_EMAIL_HERE with your middlebury email and YOUR_SECRET_CODE_HERE with your secret code. Make sure to keep the quotation marks - those are necessary to tell python that our variable is a string. Your assignment will be graded based on the contents of these variables.

Part 4: Submit on Gradescope

Your homework and lab assignments for this course will be submitted on Gradescope. This activity provides a low-stakes opportunity to make sure that you know how to use it!

Submit the submission.py here. The email and secret_code variables will be automatically checked against the email address associated with the account and the secret message that is generated by mystery.py.

  1. By the end of the semester, you will understand most of what is happening in this program!