pyramid-text

Generate pyramid text easily.


Keywords
Text, Pyramid, YouTube, Cool
License
MIT
Install
pip install pyramid-text==1.0

Documentation

About

Create pyramid text easily. Ever seen these YouTube comments?

Installation

Using pip:

pip install pyramid-text

Usage

Import the library.

import pyramidtext

To generate pyramid text:

pyramidtext.generate("Your text here")

The pyramidtext.generate() function takes the text as a parameter and returns a string of the generated pyramid each line being seperated by \n.

Full example:

import pyramidtext
print(pyramidtext.generate("Hello world!"))

Output:

H
He
Hel
Hell
Hello
Hello 
Hello w
Hello wo
Hello wor
Hello worl
Hello world
Hello world!
Hello world
Hello worl
Hello wor
Hello wo
Hello w
Hello 
Hello
Hell
Hel
He
H