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
Hashes for lorem_aoponto-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f59bf4f55b76e52336279d5565eef99d58b0f37a0fc311ee617df7c86a6bd4b7 |
|
MD5 | d3b785fd2f3a6216829e381a00295f65 |
|
BLAKE2b-256 | f0471d5d7660d570e91c045df8a9d8e1d9edb2bd064532c5d250cf9342860375 |