Skip to content

TumeloNtsilo/Mini_Assessment1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ Mini Assessment 1

This project contains several Python functions that perform basic mathematical and list operations.
It also includes unit tests to verify that each function works correctly.


๐Ÿ“‚ Project Structure

Mini_Assessment1/ โ”‚ โ”œโ”€โ”€ main.py # Contains all function definitions โ”œโ”€โ”€ test_main.py # Contains unittests for the functions โ””โ”€โ”€ README.md # Project documentation


โš™๏ธ Functions Overview

Function Description
product(num1, num2) Returns the product of two numbers
square(number) Returns the square of a number
even(n) Checks if a number is even
sum_of_list(numbers) Calculates the sum of a list of numbers
list_of_even_numbers(numbers) Returns a list of even numbers from the given list

๐Ÿš€ How to Run

  1. Fork the repo

  2. Clone the repo git clone https://github.com/TumeloNtsilo/Mini_Assessment1.git cd Mini_Assessment1

  3. Run the main file python3 main.py

  4. Run all tests python3 -m unittest test_assessment2.py

About

A mini Python assessment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages