Skip to content

AgnesChauke/Mini_Assessment1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 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

  • Python 100.0%