Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.1 KB

README.md

File metadata and controls

36 lines (25 loc) · 1.1 KB

Factful.py

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!

Links

Quick Example

1. Getting Random Facts

# 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!

© Science Spot | Decimal Development - 2020