Lab 1: Thonny, Python, Notebooks, and Exercises
Goals
High-level overview of today's lab
In today's lab you will:
- Learn how to use Thonny, which is the Integrated Development Environment (ID) that we'll use this semester to edit our code.
-
Learn a few Python basics to write simple Thonny programs.
- Write some simple programs that draw pictures and create music
-
Learn how to use two kinds of Jupyter notebooks:
- The kind used in lectures does not have any grading associated with it.
- The kind used in exercises uses the Potluck system to grade and record your work
- (If time allows) Install Thonny on your laptop.
- (If time allow) Get a head start on learning some Python basics from Lecture 02.
Ready? Let's grab the starter code for today's lab
Click on this link to download the code for today.
Wait, where should you put this lab01 folder?
On the lab computer, you should create a cs111 folder. This will help you keep your files organized. On your Mac's desktop, follow these steps:
- File > New Folder
- Rename the folder
cs111 - Click on the link above (the one that says "Click on this link") and it will automatically download the
lab01folder to the Downloads folder of the lab Mac. - Go to your
Downloadsfolder and double-click thelab01.zipfile to open it. This will create alab01folder in yourDownloadsfolder - Move the newly created
lab01folder to thecs111folder on your Desktop. - Ok, now you are ready to start programming!
This 22-second video shows how to create a 111 folder on your Desktop and then download the lab01 folder and move it into your 111 folder.
Table of Contents
- Lab 1 Home
- Part 1: Thonny intro
- Part 2: Your first program
- Part 3: Simple multimedia programs
- Part 4: Jupyter notebooks (Prof. Lyn will walk you through this)
- Ungraded notebooks used in lectures
- Exercise notebooks graded by Python
- Part 5: (If time allows) Install Thonny on your laptop (Prof. Lyn will walk you through this)
- Part 6: (If time allows) Start learning more Python basics (Prof. Lyn will walk you through this)
- Part 7: Save your work