Start free

Browse › GitHub

Add Comments and Docstrings by Using Copilot

Guided

Part of GitHub Topic: Programming

Access

StationX Infrastructure Labs — 3 attempts per lab

🔒 Add StationX Infrastructure Labs — $149 / year · 3 attempts per lab

Already have access? Sign in.

New to this? Try a free practice lab — a scripted hacking challenge in your browser, no account needed.

What you'll do

Prerequisite Required for This lab. Before starting, complete the Set Up Git and Connect to GitHub lab.

  1. The prerequisite lab only needs to be completed once for all labs in this series
  2. In this lab, you will use GitHub Copilot to automatically generate docstrings for several functions
  3. Leverage Copilot Chat to add clarifying inline comments to a more complex function
  4. Complete the documentation by adding a module-level docstring and then verifying all of your work using Python's built-in pydoc utility

Note: Once you begin the lab, you will not be able to pause, save, or return to your lab. Please ensure that you have set aside enough time to complete the lab before you start.

  • ⏱ About 30 minutes
  • Counts towards: GitHub Foundations