Assignment: **Leap Year** for the Python Training Online Course
The purpose of the code repo is to serve as the boilerplate code for the python training online course. It shall form the basic code for all the assignments that shall be used in the class.
The file contains
- a README
As the name implies, the README.md file is a documentation file. It explains what the python project is all about and how to begin writing code for the assignments.
- main.py
The main.py file is the entry point to the project. This is where all your code implementation should take place.
- requirements.txt
The requirements.txt file allows users to know the required packages/libraries that needs to be installed.
The requirements.txt file contains one line per package. Each line contains the package name, and optionally, the requested version.
For more info, see here
- test_main.py
test_main.py file contains code to run all test cases for the assignment.
You should not edit this file.
- .gitignore file
.gitignore file contains files and directories that is not to be pushed to the remote repository.
You are requided to do the following
- In
main.py, write your code in bewteen the lines22and27. - When you are done, you can submit your code for automatic grading. For help click here
Helper commands used in git in the command line
When you are ready to push your code to the remote repository, commit the changes to your code following this guide:
-
check the status of your local branch with remote in your command promp, run
git status -
add the files, run
git add . -
commit your changes using
git commit -m "your commit message" -
push your changes to the remote repo using
git push origin master -
if you get to this stage,
congratulations, you are done.