1. Assignment 1: Setup, Syllabus, and Review#

Due: 2024-09-10 2:00pm

Warning

You must complete it by 2pm on Tuesday, but if you are confused on anything from the syllabus put question: <your question here>, replacing the <> part with our actual question in that section and then ask in class. There will be time in class to make revisions to your work before it is officially graded.

I will be reading everything before class (and I can use GitHub timestamps to see what was done before and later)

1.1. Evaluation#

Eligible skills:

  • Python

  • Process

1.3. Instructions#

Important

If you have trouble, check the GitHub FAQ on the left first

Your task is to:

  1. Install required software from the Tools & Resource page (should have been done before the first class)

  2. Create your portfolio, using the link on Brightspace

  3. Learn about your portfolio from the README file on your repository.

  4. Follow instructions in the README to make your portfolio your own with information about yourself(completeness only) and your own definition of data science (graded for level 1 process)

  5. complete the success.md file as per the instructions in the comments in that file (it is a syllabus quiz)

  6. Create a Jupyter notebook called grading.ipynb and write a function that computes a grade for this course, with the docstring below. Your notebook will need to follow the course style guide, following style from other courses will not earn credit.

  7. In the same notebook, iterate over the example anonymized gradebook below and compute a grade for each one.

  8. Upload your grading.ipynb file to your portfolio (upload to main branch).

Warning

Do not merge your “Feedback” Pull Request

1.3.1. Docstring#

    '''
    Computes a grade for CSC/DSP310 from numbers of achievements at each level

    Parameters:
    ------------
    level1_acheivements : int
      number of level 1 achievements earned
    level2_acheivements : int
      number of level 2 achievements earned
    level3_acheivements : int
      number of level 3 achievements earned

    Returns:
    --------
    letter_grade : string
      letter grade with possible modifier (+/-)
    '''

1.3.2. Students to check#

Treat this list of lists as a gradebook and use your function to compute a grade for each one and store them all to a list.

acheivements_only = [[15,14,1],[15,15,10],[12,12,12]]

1.4. Help#

(optional, but useful information)

1.4.1. Sample tests#

Here are some sample tests you could run to confirm that your function works correctly, they are in one block here, but you should run them one at a time and with text between:

assert compute_grade(15,15,15) == 'A'

assert compute_grade(15,15,13) == 'A-'

assert compute_grade(15,14,14) == 'B-'

assert compute_grade(14,14,14) == 'C-'

assert compute_grade(4,3,1) == 'D'

assert compute_grade(15,15,6) =='B+'

1.4.2. Notebook Checklist#

  • a Markdown cell with a heading

  • your function called compute_grade

  • three calls to your function that verify it returns the correct value for different number of badges that produce at three different letter grades.

  • markdown cells with explanation of the calls and anything else so that the notebook reads like a report.