Skip to content

Easy way to get random facts with a selected cateogary in python!

License

Notifications You must be signed in to change notification settings

scientific-dev/factful.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Easy way to get random facts with a selected cateogary in python!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages