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.

112 lines
3.0 KiB
Plaintext

3 years ago
{
"cells": [
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"On a gloomy day\n",
"Appeared a dog and a tree\n",
"They found themselves in a parking lot\n",
"The dog had brought a flag\n",
"They were there to protest\n",
"Hoping to make a difference\n",
"And so the day continued\n"
]
}
],
"source": [
"intro = (\"sunny day\", \"day unlike an other\", \"cold evening\", \"gloomy day\")\n",
"character = (\"cat\", \"pen\", \"dog\", \"tree\")\n",
"characters = (\"cat\", \"pen\", \"dog\", \"tree\")\n",
"location = (\"parking lot\", \"sauna\", \"school\")\n",
"object = (\"flag\", \"ladder\", \"banana\", \"lunchbox\")\n",
"action = (\"protest\", \"study\", \"get therapy\")\n",
"moral = (\"make a difference\", \"learn from each other\", \"feel happier\")\n",
"end = (\"ended\", \"continued\", \"started\")\n",
"\n",
"import random\n",
"\n",
"i = random.choice(intro)\n",
"c = random.choice(character)\n",
"h = random.choice(characters)\n",
"l = random.choice(location)\n",
"o = random.choice(object)\n",
"a = random.choice(action)\n",
"m = random.choice(moral)\n",
"e = random.choice(end)\n",
"\n",
"for x in range (1):\n",
" print(f\"On a {i}\")\n",
" print(f\"Appeared a {c} and a {h}\")\n",
" print(f\"They found themselves in a {l}\")\n",
" print(f\"The {c} had brought a {o}\")\n",
" print(f\"They were there to {a}\")\n",
" print(f\"Hoping to {m}\")\n",
" print(f\"And so the day {e}\")"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"a cat and a dog a teacup and a bouquet a granny and a thief\n"
]
}
],
"source": [
"story = (\"a cat and a pen\",\"a lion and a cat\",\"a cat and a dog\")\n",
"story2 = (\"a chamallow and a sock\",\"a xmas tree and a northen star\",\"a teacup and a bouquet\")\n",
"story3 = (\"a rabit and a sofa\",\"a granny and a thief\",\"a fish and a pen\")\n",
"\n",
"import random\n",
"\n",
"s = random.choice(story)\n",
"ss = random.choice(story2)\n",
"sss = random.choice(story3)\n",
"\n",
"\n",
"for x in range (1):\n",
" print(f\"{s} {ss} {sss}\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 4
}