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.
- π² 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.
- The script sends a request to the Useless Facts API.
- The API responds with a random fun fact.
- Users can choose how many facts to generate in one run.
- The program prints the results for user enjoyment.
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!