karimk123 / randfacts

randfacts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyPI version Downloads PyPI license Maintenance GitHub issues

Randfacts is a python library that generates random facts. You can use randfacts.getFact() to return a random fun fact.

Example:

import randfacts
x = randfacts.getFact()
print(x)

will print a random fact like: Penguins can't taste sweet or savory flavors, only sour and salty ones

This package has a filter option to filter out potentially inappropriate facts. The filter is on by default. To disable the filter, you can just set the filter parameter to False.

from randfacts import getFact
print(getFact(False))

About

randfacts

License:MIT License


Languages

Language:Python 100.0%