You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3.0 KiB
3.0 KiB
In [4]:
intro = ("sunny day", "day unlike an other", "cold evening", "gloomy day") character = ("cat", "pen", "dog", "tree") characters = ("cat", "pen", "dog", "tree") location = ("parking lot", "sauna", "school") object = ("flag", "ladder", "banana", "lunchbox") action = ("protest", "study", "get therapy") moral = ("make a difference", "learn from each other", "feel happier") end = ("ended", "continued", "started") import random i = random.choice(intro) c = random.choice(character) h = random.choice(characters) l = random.choice(location) o = random.choice(object) a = random.choice(action) m = random.choice(moral) e = random.choice(end) for x in range (1): print(f"On a {i}") print(f"Appeared a {c} and a {h}") print(f"They found themselves in a {l}") print(f"The {c} had brought a {o}") print(f"They were there to {a}") print(f"Hoping to {m}") print(f"And so the day {e}")
On a gloomy day Appeared a dog and a tree They found themselves in a parking lot The dog had brought a flag They were there to protest Hoping to make a difference And so the day continued
In [6]:
story = ("a cat and a pen","a lion and a cat","a cat and a dog") story2 = ("a chamallow and a sock","a xmas tree and a northen star","a teacup and a bouquet") story3 = ("a rabit and a sofa","a granny and a thief","a fish and a pen") import random s = random.choice(story) ss = random.choice(story2) sss = random.choice(story3) for x in range (1): print(f"{s} {ss} {sss}")
a cat and a dog a teacup and a bouquet a granny and a thief
In [ ]: