Exercise 01: Hello, CS102!
This exercise is designed to introduce you to:
- Running a Python program in Thonny
- Submitting assignments via Moodle
Setup
- Complete the course setup instructions before you proceed
- Choose a location on your computer where you would like to save content for this course and create a folder named
cs102
- In your
cs102
folder, create a folder named ex01
for this assignment
Assignment
For this first exercise, we will run our first Python program.
- Download the demo code
- Extract the code file
hello.py
from the zip file to your ex01
folder
- MacOS - Double click the zip and move the file using Finder
- Windows - Double click the zip, and drag the file using Explorer
- Open Thonny
- Use the folder icon in Thonny to open
hello.py
- Click the run (play) button in Thonny to run the code
- Take a screenshot of the result from running the code
Congratulations, you have just run your first program!
Submission
- Copy the screenshot to your
ex01
assignemnt folder
- Right click your assignment folder and choose “compress” on MacOS or “Compress to ZIP file” on Windows.
- Upload the zip file to the matching Moodle assignment to submit your work.
Grading
You will earn up to 1 point for this exercise, broken down as follows:
- 1 Point - Submit a screenshot of the working program