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 randlet
>>> randlet("a", "h")
c
>>> randlet("a", "h")
g
as you can above see each time it randomly picks a letter from your range. 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 letter
>>> for i in letter("i"):
... print(i)
...
a
b
c
d
e
f
g
h
i
>>> for i in letter("d", "g"):
... print(i)
...
d
e
f
g
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for letter_tools-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2f17f4ee6d9f604d5cceeb4ce33aeb5743ee60583e3e33189098286b1043256 |
|
MD5 | 805c06abdf7243acac670bcd271a7491 |
|
BLAKE2b-256 | 77d10ee0241be26894ba39aa2ebc22a6b4e1cd7224974057274272219c821de9 |