diff --git a/story.py b/story.py index 1ac7688..a73ea5e 100644 --- a/story.py +++ b/story.py @@ -1,8 +1,12 @@ 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'] + +opt = random.choice + +when = ['A few years ago', 'Yesterday', 'Last night', 'A long time ago', 'On 20th Jan', 'The other day', 'Many moons ago', 'About a fortnight ago'] +who = ['a rabbit', 'an elephant', 'a mouse', 'a turtle','a cat', 'a chinchilla with 3 eyes'] 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)) + +print( f"{opt(when)}, {opt(who)} called {opt(name)} that lived in {opt(residence)}, went to the {opt(went)} and {opt(happened)}" )