Skip to content

TebogoP/Python_Fun_Fact_Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Python_Fun_Fact_Generator

Welcome to the Random Fact Generator Project! πŸŽ‰

This project is a Python-based Random Fact Generator that fetches fun and quirky facts from the public API Useless Facts. It's a simple, educational project that demonstrates the power of Python's requests and json libraries.


Features πŸš€

  • 🎲 Generate Random Fun Facts: Fetch random facts from the Useless Facts API.
  • πŸ” Multiple Facts in One Run: Generate more than one fact at a time.
  • πŸ› οΈ Easy-to-Understand Code: Great for beginners exploring Python APIs.
  • 🌐 Powered by a Public API: Uses the Useless Facts API for real-time data.

How It Works πŸ§‘β€πŸ’»

  1. The script sends a request to the Useless Facts API.
  2. The API responds with a random fun fact.
  3. Users can choose how many facts to generate in one run.
  4. The program prints the results for user enjoyment.

Example Output ✨

Welcome to the Random Fact Generator!
Here is a fun fact for you: 

πŸ’‘ Did you know? Cats sleep 70% of their lives.

Want more? Run the program again or generate multiple facts at once!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages