The aim of this assignment is to get familiarized with git, basic Unix commands, and the assignment submission process. I've recorded a YouTube video that walks you through this process for the this first assignment. The assignment submission process is the same for all assignments so you might find it to be a useful reference in the future as well:
-
Open the assignment in a Github Codespace.
-
In the using the file browser or the Terminal command window, create a new text file
solution.txt. -
Open the new file
solution.txtwith a text editor and enter the following text exactly as it appears:Hello, World!. -
Commit the new file to the repository and push assignment1 and the changes you made back to github.com.
First, create solution.txt yourself and enter the required text. After learning the corresponding Terminal commands, ask Copilot to perform the submission workflow with this bounded prompt:
Run
git statusand confirm that onlysolution.txtis new or modified. Runpython test.py. If the test passes, commit onlysolution.txtwith the messageComplete assignment 1and push the current branch to GitHub. If another file has changed, the test fails, or the push fails, stop and tell me instead.
Independently verify the result by running git status and git log -1 --oneline. On GitHub, confirm that the commit appears and that the Actions result passes.
If you would like to check to see if your solution is correct, in the Terminal command window run
python test.pyA status message of OK indicates you have the correct answer.