Python package to help beginners with basic math program functionalities like
- isprime(number)
- oddeven(number)
- issquare(number)
- iscube(number)
pip install pybeginners
-
Install the package.
-
To check if a number is perfect square, use the following code:
from pybeginners import programs print(programs.issquare(number))
-
Similarly, you can use
programs.isprime(number)
and two more functions.
Contributions are welcome ! You can create a PR to include a new functionality (either idea or code)