I am sure the name intrigued you. This is a basic python script which will generate random stories.
The task is to generate a random story every time the user runs the program. I have stored the parts of stories in different lists, a part of the story from each list is selected with the help of random.choice() and a random story is generated. To give a personalized touch, the user is prompted for some inputs.
random
import random
It is used to select the random story parts from the lists.
- The program first prompts the user to enter a series of inputs.
- Then they are placed in a premade story template using concatenation.
- The story full of fun is generated.
Tanvi Daware