Skip to main content

this project helps us to calculate square root ,cube root, emrip number,prime number etc

Project description

def add(*k): s=0 for i in k: s+=i return s #function to add def iroot(a): x=list(map(int,input('enter 1/2 for sqrt, 1/3 for cube root,1/4 for 4th root etc=').replace('/',' ').split()))

v=x[0]/x[1]

return a**v

function for roots

def prime(a): if a>1: for i in range(2,a//2+1): if a%i==0: return 'not prime'

else: return 'prime' else: return 'not prime'

prime

def armstrong(a):

p=len(str(a)) s=0 for i in str(a): s+=int(i)**p if a==s: return 'armstrong' else: return 'not armstrong'

disarm

def disarm(a):

p=1 s=0 for i in str(a): s+=int(i)**p p+=1 if a==s: return 'disarm' else: return 'not disarm'

def strongnumber(a): x=0 for i in range(1,a//2+1): if a%i==0: x+=i if x==a: return 'strongnumber' else: return 'not strong' #strong

def special(a): sum=0 for i in str(a): fact=1

for k in range(1,int(i)+1):
  fact*=k
  
sum+=fact

if sum==a: return 'special' return'not special'

def emrip(a): b=a a=str(a) a=a[::-1] if int(a)!=b: if prime(int(a))==prime(b): if prime(int(a))=='prime': return 'emrip' return 'not emrip' return 'not emrip' return 'not emrip'

def spy(a): s=0 m=1 for i in str(a): m*=int(i) s+=int(i) if m==s: return 'spynumber' return 'not spynumber'

def help(): print('''This module is made by prajil,using it u can find emrip number,spynumber,special number,strong number,disarm number,armstrong ,ith root of a number import prajil prajil.(spy(),emrip(),special(),strongnumber(),disarm(),iroot())''')

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

prajil-0.0.20.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

prajil-0.0.20-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file prajil-0.0.20.tar.gz.

File metadata

  • Download URL: prajil-0.0.20.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for prajil-0.0.20.tar.gz
Algorithm Hash digest
SHA256 3b63b95bf943361cf4d9ffae187ad7c555969ffdb6d1920dafdd096d3c2643d6
MD5 f988eff97cec3dc8f57b3a5ef1f8b986
BLAKE2b-256 98947f5a1673681d96ed3d57d5bc0990e31a3f6e4bd971f7abc5a88fd3657fb1

See more details on using hashes here.

File details

Details for the file prajil-0.0.20-py3-none-any.whl.

File metadata

  • Download URL: prajil-0.0.20-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for prajil-0.0.20-py3-none-any.whl
Algorithm Hash digest
SHA256 ffb05942e94aba2b857667a2fe5c434b636bd57ac87480acd672663cd70eddc6
MD5 f086c7f80c1f9af50416897d8734027c
BLAKE2b-256 6600f123030b565bc1e1e34810aadb7aa008d433d99923b070cfb150f08683e1

See more details on using hashes here.

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