Chapter 1 Activity Instructions URL

Chapter One: Fundamentals of Python

Activity: Class Schedule


In this activity, you are going to create a Python program that will print a daily schedule to the screen. You are also going to learn how to use our online Python engine to submit graded projects. You might also choose to follow other instructions to produce and submit Python programs outside our system.

Choosing Your Coding Platform

This is your first chance to create and submit your own Python program for grading. Many of your graded, hands-on activities for this course can be done directly in your web browser, using an expanded version of our web-based Python engine.

If you wish to complete Python projects on your own computer using a locally installed Python interpreter and Python source files, please see our Supplemental Chapter on Local Python Installations for step-by-step instructions.

We recommend you take advantage of our online Python engine to code and submit your work for grading, if possible. However, you may choose to work offline on your own computer with a locally installed Python interpreter. If you create Python programs on your own computer, you will need to submit those programs manually to your teacher for grading.

If you are taking this course outside of CompuScholar's online system (e.g. through a school or district-provided Canvas, Schoology, Blackboard, D2L or similar system), the online Python engine is not available for graded assignments. In that case, you must follow the instructions in the Supplemental Chapter for Local Python Installations to complete your graded projects. Please check with your teacher for activity turn-in instructions.


Using the Online Python Activity Interface

If you are using our online Python engine to create and submit assignments, this section will show you how to complete those online activities and submit them for grading. To begin, in your course interface, click on the activity link directly underneath the activity instructions.

Student activity link

Using the "Edit" Tab to Write Code

Your online activity interface will appear as shown below. The default "Edit" tab shows where you will create and run your Python programs.

Student activity Editing Screen and toolbars

The top toolbar contains two tabs - "Edit" and "Submission Status". Click on the "Edit" tab to display the remaining toolbars and source editor window shown above. From the "Edit" screen, you can type your Python source code into the Source Editor (area 4).

For now, you will only have one Python source file per project, and your activity will always contain that source file with the correct name (e.g. ""). Later, as your projects expand to multiple source files, you can use the Source File Tabs (area 3) to switch between different files in your project. Your project will always start with the right number of source files with the correct names; you will never need to create or re-name any source files.

When you are finished writing your Python code, click the "Save" button in the Save / Run toolbar (area 2). Your file will be saved to our servers and your project is ready to run.

Save button on toolbar

To run your code, click on the "Run" button, located next to your "Save" button.

Run button on toolbar

When you run the program, you will see a pop-up console that contains all of your output. If there are error messages, you will see them in this console as well. Later, as you learn to write interactive programs, you will be able to type user input into this console for your program to process. When you have finished reviewing the program results, close this pop-up window by clicking on the "X" button in the corner.

Student activity run console pop-up


It is your responsibility to make sure your program output matches the activity requirements. When the activity calls for you to write code in a certain way (e.g. with specific comments or other Python statements), be sure to follow those instructions exactly.

Submitting Your Activity and Getting Graded Results

When you are ready to submit your program for grading, click on the "Submission Status" tab on the top toolbar.

Student Submission Status screen

The Submission Status screen will show you different things, depending on how far along you are with your project.

  1. If you have not written and "Saved" any code, you will not be able to do anything on this screen. Complete and save your project code from the "Edit" screen first!
  2. If you have saved your code and are happy with the results, you will see a "Submit" button. Click on this button to submit your activity for grading. If you do not click "Submit", your work cannot be graded.
  3. After you "Submit" your project, you will no longer be able to save any changes to your Python code. The "Save" button will be hidden on the Edit screen. So, make sure you are satisfied with your project before submitting it! If you submit your project but later want to re-submit new code, you will need to ask your teacher to remove your earlier submission first.
  4. After your project is submitted, it will be automatically graded by our system. Your grade will be finalized in one of two ways:
    • Students in a traditional classroom with a teacher will wait for the teacher to review and approve your project grade. In this case, the Submission Status screen will let you know your grade is awaiting teacher approval.
    • Students working in a homeschool environment or individually will immediately receive the automatic grade assigned by the system; no teacher or parent action is needed.
  5. Once your grade is assigned, the Submission Status screen will show your final grade and a summary of the test results.
  6. If you wish to re-submit new code for a new grade, your teacher must agree and remove your earlier grade first!
Teachers should carefully review the Activity Solution Guide in this chapter for instructions on managing, approving and removing student grades.


Class Schedule Activity Requirements

It's time to actually get to work on this activity! Here are your detailed program requirements.

Create a Python program that uses print() statements to display rows of information on your screen. Each row should contain a time and a description of a class or other activity on your schedule during that time.

  1. Pick any one day of the week, like Monday.
  2. Think about your class or work schedule for the chosen day.
  3. Start your Python code with a comment at the top that contains your full name
  4. Next, write at least 5 additional Python print() statements.
    • Each print() statement should display a time and then a description of what you are doing at that time.

Activity Results

When you are done, run your code and verify that your schedule is printed to the screen. Here is one example output screen:

8am - Math Class
9am - English Class
10am - Python Programming - my favorite!
11am - Social Studies Class
12pm - Lunch
1pm - Study Hall (nap time)
2pm - Gym Class

Your own schedule will look different. Your comment line, of course, will not be visible in the output. However, just like you would put your name on a book report paper, you should always put your name in any code that you submit to your teacher!

Activity Rubric

If your project is being automatically graded by our system, your grade will be calculated from 0 to 100 as follows:

10Add comment with name as first line of code
18Print first line of output
18Print second line of output
18Print third line of output
18Print fourth line of output
18Print fifth line (or more) of output


Remember to add your name in a comment as the very first line of code.

End of Activity

Last modified: Wednesday, 8 May 2019, 7:52 AM