[Code Addition Request]: Random Story Generator for beginner projects
Have you completed your first issue?
- [x] I have completed my first issue
Guidelines
- [x] I have read the guidelines
- [ ] I have the link to my latest merged PR
Latest Merged PR Link
N/A
Project Description
Project Title: Random Story Generator 🎯 Objective Build a fun Python program that generates random short stories by combining predefined sentence fragments such as characters, settings, actions, and twists.
💡 Why This Project?
- Boosts creativity and humor
- Easy to build using just core Python
Great for beginners learning about:
Strings Lists Randomization Functions and loops
⚙️ How It Works
- Data Lists: Create lists of:
- Characters (e.g., "a dragon", "a lost astronaut")
- Settings (e.g., "in a haunted forest", "on Mars")
- Actions (e.g., "found a treasure", "built a robot"
- Twists (e.g., "but forgot their name", "then time-traveled to 2050")
- Random Selection:
- Use Python's random.choice() to pick one item from each list.
Story Template:
Combine the selections into a sentence like:
"One day, a lost astronaut on Mars built a robot but forgot their name."
Optional Features:
Generate multiple stories at once
Add a GUI using tkinter
Export stories to .txt file
🧰 Tech Stack 🐍 Python (Core)
📦 random module
🖥️ Optional: tkinter for GUI version
🔑 Concepts Practiced
- Lists & data structures
- Randomness
- String formatting
- Functions
- Loops & basic logic
Full Name
Roshni Bagga
Participant Role
Contributor Gssoc25
🙌 Thank you for bringing this issue to our attention! We appreciate your input and will investigate it as soon as possible.
Feel free to join our community on Discord to discuss more!
hii @UTSAVS26 please assign me thiss issue
@UTSAVS26 I’m interested in working on this issue. Could you please assign it to me?