A numbers check python package

Overview
Made with Python3
(C) @FayasNoushad
Copyright permission under MIT License
License -> https://github.com/FayasNoushad/Check-Numbers/blob/main/LICENSE

Installation

pip install Check-Numbers

Usage

Check Zero

from check_numbers import is_zero


print(is_zero(0))
# => True
print(is_zero(1))
# => False
print(is_zero(-1))
# => False

Check Positive

from check_numbers import is_positive


print(is_positive(1))
# => True
print(is_positive(0))
# => False
print(is_positive(-1))
# => False

Check Negative

from check_numbers import is_negative


print(is_negative(-1))
# => True
print(is_negative(0))
# => False
print(is_negative(1))
# => False

Check Odd

from check_numbers import is_odd


print(is_odd(1))
# => True
print(is_odd(0))
# => False
print(is_odd(2))
# => False

Check Even

from check_numbers import is_even


print(is_even(2))
# => True
print(is_even(0))
# => False
print(is_even(1))
# => False

Check Prime

from check_numbers import is_prime


print(is_prime(5))
# => True
print(is_prime(0))
# => False
print(is_prime(1))
# => False

Credits


You might also like...
Find all solutions to SUBSET-SUM, including negative, positive, and repeating numbers

subsetsum The subsetsum Python module can enumerate all combinations within a list of integers which sums to a specific value. It works for both negat

Process RunGap output file of a workout and load data into Apple Numbers Spreadsheet and my website with API calls

BSD 3-Clause License Copyright (c) 2020, Mike Bromberek All rights reserved. ProcessWorkout Exercise data is exported in JSON format to iCloud using

Class and mathematical functions for quaternion numbers.

Quaternions Class and mathematical functions for quaternion numbers. Installation Python This is a Python 3 module. If you don't have Python installed

A ULauncher/Albert extension that supports currency, units and date time conversion, as well as a calculator that supports complex numbers and functions.
A ULauncher/Albert extension that supports currency, units and date time conversion, as well as a calculator that supports complex numbers and functions.

Ulauncher/Albert Calculate Anything Ulauncher/Albert Calculate Anything is an extension for Ulauncher and Albert to calculate things like currency, ti

El_Binario - A converter for Binary, Decimal, Hexadecimal and Octal numbers
El_Binario - A converter for Binary, Decimal, Hexadecimal and Octal numbers

El_Binario El_Binario es un conversor de nĂºmeros Binarios, Decimales, Hexadecima

Url-check-migration-python - A python script using Apica API's to migrate URL checks between environments

url-check-migration-python A python script using Apica API's to migrate URL chec

A test repository to build a python package and publish the package to Artifact Registry using GCB

A test repository to build a python package and publish the package to Artifact Registry using GCB. Then have the package be a dependency in a GCF function.

Simple Python tool to check if there is an Office 365 instance linked to a domain.

o365chk.py Simple Python script to check if there is an Office365 instance linked to a particular domain.

edgetest is a tox-inspired python library that will loop through your project's dependencies, and check if your project is compatible with the latest version of each dependency

Bleeding edge dependency testing Full Documentation edgetest is a tox-inspired python library that will loop through your project's dependencies, and

Releases(v1.0.7)
  • v1.0.7(Nov 27, 2021)

    What's Changed

    • Update by @FayasNoushad in https://github.com/FayasNoushad/Check-Numbers/pull/6

    Full Changelog: https://github.com/FayasNoushad/Check-Numbers/compare/v1.0.6...v1.0.7

    Source code(tar.gz)
    Source code(zip)
  • v1.0.6(Nov 26, 2021)

  • v1.0.5(Nov 26, 2021)

  • v1.0.4(Nov 21, 2021)

    What's Changed

    • Update setup by @FayasNoushad in https://github.com/FayasNoushad/Check-Numbers/pull/5

    Full Changelog: https://github.com/FayasNoushad/Check-Numbers/compare/v1.0.3...v1.0.4

    Source code(tar.gz)
    Source code(zip)
  • v1.0.3(Nov 18, 2021)

    What's Changed

    • Add odd number check by @FayasNoushad in https://github.com/FayasNoushad/Check-Numbers/pull/4

    Full Changelog: https://github.com/FayasNoushad/Check-Numbers/compare/v1.0.2...v1.0.3

    Source code(tar.gz)
    Source code(zip)
  • v1.0.2(Nov 18, 2021)

    What's Changed

    • Add even numbers check by @FayasNoushad in https://github.com/FayasNoushad/Check-Numbers/pull/3

    Full Changelog: https://github.com/FayasNoushad/Check-Numbers/compare/v1.0.1...v1.0.2

    Source code(tar.gz)
    Source code(zip)
  • v1.0.1(Nov 18, 2021)

    What's Changed

    • Add prime number check by @FayasNoushad in https://github.com/FayasNoushad/Check-Numbers/pull/2

    Full Changelog: https://github.com/FayasNoushad/Check-Numbers/compare/v1.0.0...v1.0.1

    Source code(tar.gz)
    Source code(zip)
  • v1.0.0(Nov 18, 2021)

Owner
Fayas Noushad
Indian Opensource Software Developer. Computer Science Student @Puliyaparamb. Learning more about programming. A @Python programmer.
Fayas Noushad
A numbers extract from string python package

Made with Python3 (C) @FayasNoushad Copyright permission under MIT License License -> https://github.com/FayasNoushad/Numbers-Extract/blob/main/LICENS

Fayas Noushad 4 Nov 28, 2021
Check if Python package names are available on PyPI.

?? isavailable Can I haz this Python package on PyPI? Check if Python package names are available on PyPI. Usage $ isavailable checks whether your des

Felipe S. S. Schneider 3 May 18, 2022
A practice program to find the LCM i.e Lowest Common Multiplication of two numbers using python without library.

Finding-LCM-using-python-from-scratch Here, I write a practice program to find the LCM i.e Lowest Common Multiplication of two numbers using python wi

Sachin Vinayak Dabhade 4 Sep 24, 2021
Validate UC alumni identifier numbers with Python 3.

UC number validator Validate UC alumni identifier numbers with Python 3. Getting started Install the library with: pip install -U ucnumber Usage from

Open Source eUC 1 Jul 7, 2021
A python library what works with numbers.

pynum A python library what works with numbers. Prime Prime class have everithing you want about prime numbers. check_prime The check_prime method is

Mohammad Mahdi Paydar Puya 1 Jan 7, 2022
A Python script to parse Fortinet products serial numbers, and detect the associated model and version.

ParseFortinetSerialNumber A Python script to parse Fortinet products serial numbers, and detect the associated model and version. Example $ ./ParseFor

Podalirius 10 Oct 28, 2022
A complete python calculator with 2 modes Float and Int numbers.

Python Calculator This program is made for learning purpose. Getting started This Program runs using python, install it via terminal or from thier ofi

Felix Sanchez 1 Jan 18, 2022
Quick script for automatically extracting syscall numbers for an OS

Syscalls-Extractor Quick script for automatically extracting syscall numbers for an OS $ python3 .\syscalls-extractor.py --help usage: syscalls-extrac

m0rv4i 54 Feb 10, 2022
A program to generate random numbers b/w 0 to 10 using time

random-num-using-time A program to generate random numbers b/w 0 to 10 using time it uses python's in-built module datetime and an equation which retu

Atul Kushwaha 1 Oct 1, 2022
A calculator to test numbers against the collatz conjecture

The Collatz Calculator This is an algorithm custom built by Kyle Dickey, used to test numbers against the simple rules of the Collatz Conjecture.

Kyle Dickey 2 Jun 14, 2022