Lab 1: Workflow, Thonny and Python

Solutions

Goals

A cartoon mouse labeled 'python' and a penguin labeled 'cs111' smiling and holding hands. The mouse is wearing a mortar board with a tassel and the penguin is wearing a red scarf.

Be a good partner

Throughout today's lab (and our remaining labs), you will work with a partner. Typically, you and your partner would share the keyboard, swapping it back and forth. Since we are starting remote this semester, you'll alternate sharing screens in a breakout room in zoom. You will ask each other questions and offer each other support. Your job is to make sure that you both understand something before moving on.

High-level overview of today's lab

In today's lab you will:

  1. Learn how to use Thonny, which is the program we'll use this semester to edit our code.
  2. Practice submitting a project, using the Potluck server.
  3. Review programming basics from lecture and write your first program.
  4. Write some simple programs that draw pictures and create music.
  5. If there's extra time, you'll have a chance to dig into either drawing or music a bit more.

A graphic showing a high level overview of today's lab: getting the starter code, writing code in Thonny, and then, when working on a project, uploading files to the submission server

Ready? Let's grab the starter code for today's lab

Click on this link to download the code for today.

Wait, first you need a cs111 folder on your Desktop

This will help you keep all your 111 files in the same place all semester.

This video shows how to create a 111 folder on your Desktop and then download the lab01 folder and move it into your 111 folder. It also shows downloading the starter project folders from potluck and how to create a project01 folder in your cs111 folder to store all your project01 code, although it names that folder ps01 instead of project01.

Table of Contents