Created
February 10, 2019 16:28
-
-
Save xy1194/c2cb4fac2e0376fcee18b41160cae4ff to your computer and use it in GitHub Desktop.
2/10 poem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## I Love Animals" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 55, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"import random" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 56, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"animals = [\n", | |
" 'cats',\n", | |
" 'dogs',\n", | |
" 'pigs',\n", | |
" 'chickens',\n", | |
" 'bunnies',\n", | |
" 'elephants',\n", | |
" 'tigers',\n", | |
" 'foxes',\n", | |
" 'lions',\n", | |
" 'dolphins',\n", | |
"]" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 57, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"time = [\n", | |
" 'for 2 months',\n", | |
" 'forever',\n", | |
" 'for 3 years',\n", | |
" 'for 10 years',\n", | |
" 'when I was little',\n", | |
" 'by the sea',\n", | |
" 'after I become a middle school student',\n", | |
" 'for a long time',\n", | |
"]" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 58, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"cloth = [\n", | |
" 'high heels',\n", | |
" 'nothing',\n", | |
" 'Indian dresses',\n", | |
" 'kimonos',\n", | |
" 'glass slippers',\n", | |
" 't-shirts',\n", | |
" 'swimming suits',\n", | |
" 'sneakers',\n", | |
" 'glasses',\n", | |
" 'angel wings',\n", | |
"]" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 59, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"inhabitants = [\n", | |
" 'all races of men represented wearing predominantly red clothing',\n", | |
" 'children and old people',\n", | |
" 'collectors of all types',\n", | |
" 'fishermen and families',\n", | |
" 'french and german speaking people',\n", | |
" 'their friends',\n", | |
" 'horses and birds',\n", | |
" 'little boys',\n", | |
" 'their lovers',\n", | |
" 'dragons',\n", | |
" 'people speaking many languages wearing little or no clothing',\n", | |
" 'people who eat a great deal',\n", | |
" 'people who enjoy eating together',\n", | |
" 'people who love to read',\n", | |
" 'people who sleep almost all the time',\n", | |
" 'people who sleep very little',\n", | |
" 'various birds and fish',\n", | |
" 'vegetarians',\n", | |
"]" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 60, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"places = [\n", | |
" 'a closet',\n", | |
" 'desert',\n", | |
" 'church',\n", | |
" 'police station',\n", | |
" 'Tisch',\n", | |
" 'ITP',\n", | |
" 'IMA',\n", | |
" 'Rome',\n", | |
" 'Tokyo',\n", | |
" 'hotel',\n", | |
" 'swimming pool',\n", | |
" 'central park',\n", | |
" 'Bejing',\n", | |
"]" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 62, | |
"metadata": { | |
"scrolled": false | |
}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"\n", | |
"I love fat dolphins\n", | |
" after I become a middle school student\n", | |
" I would like to see them\n", | |
" wearing t-shirts\n", | |
" chasing by their lovers\n", | |
" in Bejing\n", | |
"\n", | |
"I love fat tigers\n", | |
" for 3 years\n", | |
" I would like to see them\n", | |
" wearing angel wings\n", | |
" chasing by children and old people\n", | |
" in central park\n", | |
"\n", | |
"I love fat dogs\n", | |
" forever\n", | |
" I would like to see them\n", | |
" wearing high heels\n", | |
" chasing by all races of men represented wearing predominantly red clothing\n", | |
" in central park\n", | |
"\n", | |
"I love fat tigers\n", | |
" for 10 years\n", | |
" I would like to see them\n", | |
" wearing t-shirts\n", | |
" chasing by french and german speaking people\n", | |
" in central park\n", | |
"\n", | |
"I love fat tigers\n", | |
" for 2 months\n", | |
" I would like to see them\n", | |
" wearing nothing\n", | |
" chasing by all races of men represented wearing predominantly red clothing\n", | |
" in hotel\n", | |
"\n", | |
"I love fat dogs\n", | |
" forever\n", | |
" I would like to see them\n", | |
" wearing glasses\n", | |
" chasing by various birds and fish\n", | |
" in IMA\n", | |
"\n", | |
"I love fat lions\n", | |
" for 3 years\n", | |
" I would like to see them\n", | |
" wearing glasses\n", | |
" chasing by people who sleep almost all the time\n", | |
" in Bejing\n" | |
] | |
} | |
], | |
"source": [ | |
"stanza_count = 7\n", | |
"for i in range(stanza_count):\n", | |
" print()\n", | |
" print(\"I love fat \" + random.choice(animals))\n", | |
" print(\" \" + random.choice(time))\n", | |
" print(\" I would like to see them\")\n", | |
" print(\" wearing \"+ random.choice(cloth))\n", | |
" print(\" chasing by \" + random.choice(inhabitants))\n", | |
" print(\" in \" + random.choice(places))" | |
] | |
}, | |
{ | |
"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.1" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment