Skip to content
/ python-ta Public template
forked from she-code-africa/python-ta

Python Track Assessment Template

Notifications You must be signed in to change notification settings

Amalearner/python-ta

This branch is 1 commit ahead of, 1 commit behind she-code-africa/python-ta:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4e87316 · Jan 30, 2021

History

8 Commits
Jan 30, 2021
Nov 2, 2020
Dec 21, 2020
Dec 21, 2020

Repository files navigation

Python Track Assessment

Instructions

This repo contains the accessment exercise for the Python Track Please perform the following instructions.

  • Fork this repository.
  • Clone the repository to your local computer.
  • Add your solution to the specificied position.
  • Commit your solution.
  • Push your update to your repository.
  • Submit your repository URL on the provided google form.

Structure

The directory structure of this template

python-ta/
.
├── readme.md
├── src
│   ├── __init__.py
│   └── app.py
└── test.py

Example

# src/app.py

def solution(n):
    # your code goes here


if __name__ == "__main__":
    if len(sys.argv) <= 1:
        sys.exit(os.error("Argment required"))

    n = int(sys.argv[1])
    print(solution(n))

Running your code

Write your solution in the way your pass the argument into the program via the commandLine/Terminal.

# invoke the solution
$: python src/app.py <input>

Testing

The test containers some basic test to make sure your solution are correct. Run the test to verify.

$: python -m unittest test

Need Help

contact: ***

About

Python Track Assessment Template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%