An introduction to Python can be seen here:
Python for R users
On this repository's GitHub page, click Use this template and create a repository in your own account (you can rename it if convenient; it should be a PUBLIC repo).
Work in your own copy, there is no need to ever return to the course repo. You will clone, commit, and push to the repo in your own account.
Open your new repository's Actions tab. If GitHub asks whether to enable workflows, confirm.
If workflows are disabled in repository settings, allow GitHub-provided actions (including actions/checkout and actions/setup-python), or select Allow all actions and reusable workflows. Save the setting. Then return to Actions and enable the workflow if prompted.
Clone your new repository using its GitHub page's Code button, or edit it in an online environment such as Google Colab or Kaggle. Replit is another option if your computer does not work well. If you work locally, install Python first. See this guide for basic Git commands: https://www.earthdatascience.org/workshops/intro-version-control-git/basic-git-commands/.
Edit (only!) the tasks.py file by filling in your solution code. Use the functions, and print the returned outputs, to see whether you have errors. You can also run all grading tests locally with these commands:
python -m pip install numpy pytest
python -m pytest tests/grade_task1.py tests/grade_task2.py tests/grade_task3.pyThe grading files are in the tests/ folder; don't edit them.
GitHub Actions runs all three grading files automatically on pushes and pull requests.
The Actions run summary reports the outcome of each task.
Commit and push your changes to your own repository. For a local clone, run:
git add tasks.py
git commit -m "Completed tasks"
git pushAfter the push, go to your browser, open your repository's Actions tab and select the newest Grade assignment run. Its Summary shows the result for each task; open the task steps to see test details. If no run appears, check that Actions are enabled and that you pushed to your own repository.
Follow the instructions on canvas (i.e., likely you will have to upload a link to this repo. Make sure the repo settings say it's public rather than private).

