Skip to main content

A small example package

Project description

python simplified even further

  1. calculator() - make basic calculations ex - start.pyiseasy.calculator(1,2,'+')

  2. openfile() - open a text file ex - myfile=start.pyiseasy.openfile('example.txt','read')

  3. readfile() - read the contents of a file ex - start.pyiseasy.readfile(myfile)

4.writetofile() - write some data to a file ex - start.pyiseasy.writetofile(myfile,'Hi there')

5.closefile() - closes the file ex - start.pyiseasy.closefile(myfile)

6.declaredatatype() - declares a type of data in the program ex - a=start.pyiseasy.declaredatatype(2,'integer')

Note: this function can accept boolean variables as well. To declare a boolean value using this function. Please use: b=start.pyiseasy.declaredatatype('bool','is true')

7.printbackwards() - prints a string backwards ex - print(start.pyiseasy.printbackwards('racecar'))

8.removeduplicate() - removes any repeated value from a list and gives a list with no duplicate values. ex - withnodup=start.pyiseasy.removeduplicate(list)

  1. giveduplicates() - gives a list of all the duplicate values in a list. ex - dups=start.pyiseasy.giveduplicates(list)

  2. addDict() - this adds a key and a corresponding value to a dictionary ex - start.pyiseasy.addDict(dictionary,2,'Chicken')

11.addtuple() - this adds an element to a tuple please note that another tuple could not be added to an existing tuple using this function ex - start.pyiseasy.addtuple(tup,'Hello World!')

  1. findASCII() - finds the ASCII value of a character ex - start.pyiseasy.findASCII('b')

  2. findvalchar() - finds the character using an ASCII value ex - start.pyiseasy.findvalchar(65)

  3. probability() - finds the probability ex - prob=start.pyiseasy.probability(2,10)

15.findvowels() - gives the number of vowels in a string ex - noofvowels=start.pyiseasy.findvowels(string)

  1. paragraph() - gives a paragraph ex - p=start.pyiseasy.paragraph(string)

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

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

Uploaded Source

Built Distribution

Oversimplepy-0.0.1-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

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