Skip to main content

This package gives a list of evens,odds and prime numbers between two numbers(both inclusive)

Project description

This module return all the even umbers between the given two numbers(Both inclusive).

How to make most use of the module?

simply run the following command “pip install tnumbers” in the command prompt

then open up your project and import tevevn package

now you are ready to use the function evens_between

————-USAGE—————-

import tnumbers

//Prints the values between two integers a and b where a<b a,b=2,20

evens=tnumbers.evens_between(a,b) print(evens)//output is [2,4,6,8,10,12,14,16,18,20]

//similarly for odd and prime numbers print(tnumbers.odds_between(a,b)) //output is [3, 5, 7, 9, 11, 13, 15, 17, 19] print(tnumbers.primes_between(a,b)) //output is [2,3,5,7,11,13,17,19]

Change Log

0.0.1(18/03/2023)

-First Release

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

tnumbers-0.0.1.tar.gz (2.8 kB view hashes)

Uploaded Source

Supported by

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