- Fork this repo to your account
- Under the repo you just forked, you should see
<your_user_name>
/<repo_name>
at the title. Clone that repo to your local machine- You can find the URL here, use Clone with SSH
- In the terminal window, switch to a folder where you
would like to clone the repo.
Hint: usecd
to switch to different directory
Hint: usels
to list all the non-hidden files under current directory - Use
git clone <url>
to clone the repo.
Double check that your URL is similar togit@github.com:<your_username>/<repo_name>.git
- You can find the URL here, use Clone with SSH
- Type
ls
to make sure that the repo is correctly cloned to your disk. You should see a folder with name same as the repo's name - Now you can switch to the folder and work on the assignment
- Check the local repo status:
git status
- Stage the change for commit:
git add <path/to/the/file>
- Commit the staged files:
git commit -m <message>
- Push your change to a remote server:
git push origin master
- You will need to use python to read a dataset (plaintext file). Grab specified information by using regular expression, and store it in specified variables
- The dataset is located in the folder
data/
.
!!!Please don't move the file outside the folder!!!
!!!Please don't move the .py file to the data folder, either !!! - In the
.py
file you can add lines to help you debug or test (not unittest) your code. To complete the tasks, you would need to edit strings which assign value to the first parameter ofopen()
method, and assign value to the variableregex
. - A unittest test case has been written at the bottom of the code. You can use that to check whether your code fulfills the requirements.