From 35faa8fb4829be0564d046da8216d3569d834adc Mon Sep 17 00:00:00 2001 From: AdyaTech Date: Thu, 7 May 2026 16:35:48 +0530 Subject: [PATCH] Contributing my Python project by the name of Story Generator in this repository. --- Story Generator (by AdyaTech)/story.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Story Generator (by AdyaTech)/story.py diff --git a/Story Generator (by AdyaTech)/story.py b/Story Generator (by AdyaTech)/story.py new file mode 100644 index 0000000..38d2828 --- /dev/null +++ b/Story Generator (by AdyaTech)/story.py @@ -0,0 +1,8 @@ +import random +when = ['A few years ago', 'Yesterday', 'Last night', 'A long time ago','On 20th Jan'] +who = ['a rabbit', 'an elephant', 'a mouse', 'a turtle','a cat'] +name = ['Ali', 'Miriam','daniel', 'Hoouk', 'Starwalker'] +residence = ['Barcelona','India', 'Germany', 'Venice', 'England'] +went = ['cinema', 'university','seminar', 'school', 'laundry'] +happened = ['made a lot of friends','Eats a burger', 'found a secret key', 'solved a mistery', 'wrote a book'] +print(random.choice(when) + ', ' + random.choice(who) + ' that lived in ' + random.choice(residence) + ', went to the ' + random.choice(went) + ' and ' + random.choice(happened)) \ No newline at end of file