Story Generator using Python
Story Generator includes interesting character names, Different places, actions, and conflicts.
In this code, we write should import the random package so that we can easily generate a random story. we should define a function called generate_story in this we have different types of characters, places, actions, and also conflicts. In the next line that code is used to generate a random story. In that, we should add the random.choice(subject), By adding that we the values will assign to character, place, action, and conflict. By returning the story we will get the story and At last, we have to print the final story. Each time by running the code it will generate a new random Story.
Project Files
/
Loading...
| .. | ||
| This directory is empty. | ||