Skip to main content

Python tools for doing stuff with letters.

Project description

Letter Tools

This is a very simple module that allows you to randomly get letters and make letter for loops.

Installing

To install use this command:

$ pip install letter-tools

Examples

First an example for randomly picking a letter.

>>> from letter_tools import rand
>>> rand("a", "h")
c
>>> rand("a", "h")
g
>>> rand(1, 10)
5
>>> rand(1, 10)
7

Another example for randomly picking a letter out of numbers.

>>> from letter_tools import randlet
>>> randlet(4, 8)
h
>>> randlet(5, 7)
e

Next an example for ranges.

>>> from letter_tools import Range
>>> for i in Range("i"):
...     print(i)
...
a
b
c
d
e
f
g
h
i

>>> for i in Range("d", "g"):
...     print(i)
...
d
e
f
g

>>> for i in Range(1, 5):
...     print(i)
...
1
2
3
4

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

letter-tools-0.0.4.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

letter_tools-0.0.4-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