A Package which can give you Random Facts in an easy way!
Note: This is my first every Pypi Package so i made the codes a bit damaged. I will clear those damage in next update or else just help me by doing a pull request! Thanks!
# Import factful.py Module
import factful
# Define facts function
facts = factful.facts()
# Getting random fact from random cateogary
print(facts["all"])
# Getting random facts from a paticular cateogary!
# All Cateogaries: "computer", "food", "emoji", "space"
print(facts["computer"])
print(facts["food"])
print(facts["emoji"])
print(facts["space"])
We also have this module as Javascript NPM Package! https://www.npmjs.com/package/factful.js. You can join our Discord Server for support!