HW 2
HW 2
• Do not forget to add README.md and .gitignore! and also set the repository to public.
• I will mainly read commit message, git status and git related stuff, so do not worry if your code cant
run.
• After finishing this home work. copy the link to the repo, and paste it here: Sheet.
Problem 1
Use the code editor or IDE of your choice, create a Python file call addition two number and add the
following:
Use the terminal in your editor or IDE, add addition two number file, then commit it with the
message of your choice, be short but also informative. After that push the file using
git push
Problem 2
Following the above steps, create another Python file all subtract two number with the following content:
Problem 3
You are now still in the main/master branch, go to your Terminal, create a new branch name:
add-divide-feature
Switch/Checkout to that branch, and do task 4 and 5.
Problem 4
Following the above steps from task 1, create another Python file all divide two number with the
following content:
Problem 5
The code from task 4 has a major bug, find it, fix it and then commit your edit, with a short and clear
message of what you did!