Project to create Lorem Ipsum text
Project description
:space_invader: About
This code generates random text based on a string of Lorem Ipsum. It uses the random
module to randomly select words from the string to build sentences and paragraphs. The generate_word
function selects a single word from the string; generate_sentence
builds a sentence by randomly selecting a number of words and adding a period at the end of the sentence. It may also insert commas based on the length of the sentence. generate_paragraph
creates a paragraph by randomly selecting a number of sentences; generate_text
creates a block of text by randomly selecting a number of paragraphs. The printed statements in the code test each of these functions to ensure that they work properly.
:runner: Usage
The code can be run in the terminal using the following command:
python lorem_generator.py
:raising_hand: Contribution
All contributions are welcome! Please open an issue or submit a pull request.
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
Built Distribution
File details
Details for the file lorem_aoponto-0.1.0.tar.gz
.
File metadata
- Download URL: lorem_aoponto-0.1.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.3 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e81ce278f0d7344a1d9430bb70bc7a41565a17f60b61f35a3757bdb961d25eca |
|
MD5 | a4954713c899387447287b8a3dc0e9cf |
|
BLAKE2b-256 | 6a4aa98b425b4a7cef32ac80926bcd253b7316131822bb91db71596f24e88214 |
File details
Details for the file lorem_aoponto-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: lorem_aoponto-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.3 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f59bf4f55b76e52336279d5565eef99d58b0f37a0fc311ee617df7c86a6bd4b7 |
|
MD5 | d3b785fd2f3a6216829e381a00295f65 |
|
BLAKE2b-256 | f0471d5d7660d570e91c045df8a9d8e1d9edb2bd064532c5d250cf9342860375 |