Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Nemika-Haj/MadLibsPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MadlibsPy

Create your own madlibs game!

Installation

Use python -m pip install madlibspy

Example

import madlibspy as madlibs

data = madlibs.Madlibs(API_TOKEN) # You need an API token from api.bytestobits.dev

answers = [input(f"Enter a/an {i}: ") for i in data.variables]

text = data.convert(answers)

"""text = answers >> data
This also works, it's a faster way of convertion.
"""
print(data.title)
print(text)

And much more!

Documentation

Coming soon...!