Skip to main content

A Python package to Check Even and Odd for any given numbers or list and return True , False & list based on data type provided

Project description

Python-Package

Installation

pip install techyshiv-evenodd

what it does

This Basically Provide you to get easier whenever you are facing such problems where you have to find the even and odd numbers.
This Modules Helps,you to find whether the given number is even and odd or you can also pass a list to this function and get the desired list for even & odd numbers.

Supported Data-Typs

Integer
String
List

How to use it

import techyshiv_evenodd as evenodd
params = evenodd.EvenOdd(data=2)
params.checkEven() # Output - True
params.checkOdd()  # Output - False

params = evenodd.EvenOdd(data="2")
params.checkEven() # Output - True
params.checkOdd()  # Output - False

params = evenodd.EvenOdd(data=[10,20,30,1,19,40])
params.checkEven() # Output - [10,20,30,40]
params.checkOdd()  # Output - [1,19]

License

© 2022 Shivang Saxena
This repository is licensed under the MIT license. See LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

techyshiv-evenodd-1.0.1.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file techyshiv-evenodd-1.0.1.tar.gz.

File metadata

  • Download URL: techyshiv-evenodd-1.0.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for techyshiv-evenodd-1.0.1.tar.gz
Algorithm Hash digest
SHA256 855b4e27d5570458c00b5370ac7d15c59b980ca8f934749f56dae0b7d61babdf
MD5 f1d39f2b89d186674bf588245e4c3600
BLAKE2b-256 930ecd588c267b197dc672b1e027a092a9d5f004a7c1de7a753a0d2a0ac47783

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page