extinctsion / easyPythonpi

A python library for the beginners. The program includes simple calulations. Genuine PRs will be merged without delays
https://pypi.org/project/easyPythonpi/
14 stars 36 forks source link

Added an new function called "average" #37

Closed arunimaChintu closed 11 months ago

arunimaChintu commented 1 year ago

the average function is added in the easyPythonpi.py and it finds the average of any two or three numbers.

extinctsion commented 1 year ago

Thanks for your contribution but the thing is these codes will only work for 2 inputs. whatif there are n inputs and the user have to find the avg of those n numbers? Think and resumit then ill merge it to master. Hint: use args/kwargs. refer google.

arunimaChintu commented 1 year ago

resubmitted... is it okay now?

extinctsion commented 1 year ago

So what does percentage3(x:'float', y:'float',z:'float')->'float': does? and why there is /2 in the code while getting percentage of three numbers. pls correct it.

arunimaChintu commented 1 year ago

replaced the percentage3 with calculate_percentage

extinctsion commented 11 months ago

This PR is ready to be merged.