Skip to content

Instantly share code, notes, and snippets.

@aparrish
Created February 21, 2019 18:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save aparrish/e3755a244902bf776e6d75a0b5f661ee to your computer and use it in GitHub Desktop.
rwet ima section notes from feb 19th and feb 21st
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# in-class notebook, 2019-02-19 & 2019-02-21"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## escaping strings in python\n",
"\n",
"And then she said, \"GOOD DAY SIR,\" and left.\n"
]
},
{
"cell_type": "code",
"execution_count": 47,
"metadata": {},
"outputs": [],
"source": [
"s = \"And then she said, \\\"GOOD DAY SIR,\\\" and left.\""
]
},
{
"cell_type": "code",
"execution_count": 51,
"metadata": {},
"outputs": [],
"source": [
"t = \"\\\\\""
]
},
{
"cell_type": "code",
"execution_count": 52,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\\\n"
]
}
],
"source": [
"print(t)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 10 print in python"
]
},
{
"cell_type": "code",
"execution_count": 145,
"metadata": {},
"outputs": [],
"source": [
"chars = [\"\", \"\", \"\", \"\", \"\", \"\", \"\"]"
]
},
{
"cell_type": "code",
"execution_count": 110,
"metadata": {},
"outputs": [],
"source": [
"chars = [\"+\", \"-\", \".\"]"
]
},
{
"cell_type": "code",
"execution_count": 138,
"metadata": {},
"outputs": [],
"source": [
"chars = \"🐈🐈🐈🐈🐈🐈🐈🐈🐈😹😺😻😼😽😾😿🙀🐱😸\""
]
},
{
"cell_type": "code",
"execution_count": 139,
"metadata": {},
"outputs": [],
"source": [
"import random"
]
},
{
"cell_type": "code",
"execution_count": 140,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"😿\n"
]
}
],
"source": [
"print(random.choice(chars))"
]
},
{
"cell_type": "code",
"execution_count": 146,
"metadata": {},
"outputs": [],
"source": [
"bunch = [random.choice(chars) for i in range(10000)]"
]
},
{
"cell_type": "code",
"execution_count": 147,
"metadata": {},
"outputs": [],
"source": [
"joined_bunch = \"\".join(bunch)"
]
},
{
"cell_type": "code",
"execution_count": 148,
"metadata": {
"scrolled": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟋⟋⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟋⟋⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟋⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟋⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟋⟍⟋⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟋⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟋⟍⟍⟋⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟋⟋⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟋⟍⟍⟍⟋⟍⟋⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟋⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟋⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟋⟍⟍⟋⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟋⟍⟍⟍⟍⟋⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟋⟍⟍⟋⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟋⟍⟍⟋⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟋⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟋⟋⟍⟍⟍⟍⟍⟍⟋⟋⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟋⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟋⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟋⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟋⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟋⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟋⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟋⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟋⟋⟍⟍⟍⟍⟋⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟋⟍⟋⟍⟍⟍⟍⟍⟋⟋⟍⟍⟋⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟋⟍⟍⟋⟍⟋⟋⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟋⟍⟋⟍⟋⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟋⟍⟍⟋⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟋⟋⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟋⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟋⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟋⟋⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟋⟋⟋⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟋⟋⟍⟋⟍⟍⟍⟋⟋⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟋⟋⟍⟍⟋⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟋⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟋⟋⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟋⟋⟍⟍⟋⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟋⟋⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟋⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟋⟍⟋⟍⟍⟋⟋⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟋⟍⟋⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟋⟍⟍⟋⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟋⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟍⟍⟋⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟋⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟍⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟋⟍⟋⟍⟍⟍⟍⟍⟍⟍⟍⟍⟍⟋⟋⟍⟍⟋⟋⟋⟍⟍⟍⟍\n"
]
}
],
"source": [
"print(joined_bunch)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### one-liner"
]
},
{
"cell_type": "code",
"execution_count": 178,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"🌳🌳 ⟍ 🌳⟍⟍  🐄⟋🌳 ⟋   ⟍⟋ 🌳⟋⟋⟍ ⟍⟍🌳⟋⟋ ⟍⟍🌳 🌳 ⟍⟍   ⟍🌳⟍ 🐄⟍🐄⟍⟍   🌳⟋ ⟋⟍🐄 ⟍⟍🌳⟍   🌳🌳⟍⟍ 🌳🐄🐄 ⟍ 🌳🌳⟍⟋  ⟋🌳 ⟍⟍  🌳 ⟋ ⟋⟍ ⟋⟍ 🐄⟍    ⟍   🐄⟍⟍ ⟍ ⟍🐄  ⟍ 🐄   ⟋ 🌳⟍  ⟋ ⟍  🐄     🌳⟋ ⟍⟍   🌳⟋  ⟍🌳 ⟋⟍⟍⟍🐄   🐄🌳 ⟍ 🌳 ⟍🌳⟍ 🌳     ⟍⟍⟋🌳⟍🌳🌳🐄 🐄 🌳🌳  ⟍    ⟍⟍⟋🌳🌳⟋🐄⟍⟍ ⟍  ⟍ 🌳 ⟋ ⟍⟍🐄⟋⟍⟍ 🐄⟋ ⟍🌳⟋⟍⟋⟍⟍ ⟍⟍    ⟋⟍🌳🌳  ⟋  ⟍⟍  ⟍   ⟍⟍⟍🌳  🌳⟍⟍ 🌳 🐄 🌳⟋⟍ ⟍⟍⟋⟍⟍🌳 ⟍⟍⟍⟋   ⟋ ⟋⟍⟍⟍ ⟍⟍ 🐄  ⟍⟍⟍  ⟍ ⟍⟋  ⟍⟍⟍ ⟍🌳 🐄🌳⟍  🐄⟍⟍  ⟍ ⟍  ⟍     ⟍⟍  ⟍⟍   ⟍  ⟍ 🌳 ⟍⟋ ⟍ ⟍⟋🌳  🌳⟍ ⟋🐄⟋ ⟍🌳🐄 🌳🐄  ⟍⟍🐄  🐄🐄⟍ 🌳🐄⟍  🌳  🐄⟋⟍⟍🌳⟍ 🐄  ⟋🌳🐄 ⟍⟍  ⟋ ⟋⟋🐄🐄 🐄⟋ ⟍⟋ ⟍  ⟍  🌳🐄🌳⟍🌳⟋⟋⟋ ⟍⟍ ⟍⟍🐄⟍ ⟋ ⟍🌳⟋⟍⟍⟋⟍🌳 🌳⟍ 🌳⟋  ⟍  ⟍⟋🐄⟍⟋⟍⟍ ⟋  ⟋🌳 ⟍ 🐄⟍⟍⟍  🌳⟍⟍🌳⟍⟍🐄🐄🐄🌳 ⟍🐄 ⟍  ⟍ 🌳🐄 ⟍🌳⟋⟋  🐄   ⟍ ⟋⟍🐄  🌳⟍   🌳⟋⟍🌳🌳⟋⟍⟍🌳🌳  ⟍🌳 ⟍⟍  ⟍⟍⟍   ⟍ 🐄🌳⟋🌳   ⟍  ⟋⟍ ⟍⟍ ⟍⟍  ⟋🌳 ⟋  🐄  🌳 ⟋ 🐄⟍ ⟍   ⟍ ⟋⟍⟍🌳  ⟍⟍🐄⟍ ⟍⟋ ⟍🌳  ⟍⟍🐄  ⟍⟍ ⟋⟍🐄🐄 🐄⟍ ⟍    ⟋🌳⟍🐄⟍🐄🌳🐄🌳⟍🐄⟍⟋ 🐄⟍⟍⟋🐄⟋⟍⟍ ⟍🌳   ⟍🌳⟍⟍   ⟍⟋  ⟍⟍ ⟍⟍ ⟍⟍🌳 🌳 ⟍ ⟍⟋ ⟍   ⟍⟍⟍ ⟋⟍  ⟍ ⟍  🌳 ⟍  ⟍ 🐄⟋ 🐄⟍ ⟍🐄   ⟍⟍⟍🐄⟍ ⟍⟍⟍⟍  ⟍ ⟍🐄 ⟍   🐄⟍  🌳⟍⟍   ⟍⟍⟍⟍⟍⟋🌳⟍⟍ ⟋🌳🌳 ⟍ 🌳 ⟍⟍🌳 ⟍ ⟋ ⟋⟍🐄 ⟍⟍⟍🐄  ⟍ 🌳⟋⟍⟍🌳⟋  ⟍⟍ 🐄🌳⟋⟍ ⟋⟍🌳🌳🌳⟍  🐄⟍⟍ 🐄⟍⟋ ⟍⟍⟍⟍🐄  ⟋🌳   ⟍🐄 ⟋ ⟍ ⟍⟋🐄 ⟍🐄 ⟍⟍    ⟍     🌳   ⟍   🌳⟍⟋⟍   ⟋⟍⟍⟍⟋   ⟍🌳  ⟍⟍⟍  🌳   ⟍🐄 🐄⟍⟍⟍⟍ ⟍⟍⟍⟍ 🐄 ⟍ 🐄 🌳 🐄⟍⟍⟍🌳⟋🌳🐄 🌳⟍🐄⟍ 🐄        🐄🐄   ⟋🐄 🐄 ⟍🌳🐄⟍⟍🐄⟍⟍⟍ ⟍⟍ ⟍   🐄⟍🐄 🐄\n"
]
}
],
"source": [
"print(\"\".join([random.choice(\"⟍⟍⟍⟋    🐄🌳\") for i in range(1000)]))"
]
},
{
"cell_type": "code",
"execution_count": 183,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"MOM\n",
"WOW\n",
"WOW\n",
"WOW\n",
"MOM\n",
"WOW\n"
]
}
],
"source": [
"print(\"\\n\".join([random.choice([\"WOW\", \"MOM\"]) for i in range(1000)]))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### joining strings in python!"
]
},
{
"cell_type": "code",
"execution_count": 79,
"metadata": {},
"outputs": [],
"source": [
"glue = \",\""
]
},
{
"cell_type": "code",
"execution_count": 80,
"metadata": {},
"outputs": [],
"source": [
"words = [\"hello\", \"there\", \"how\", \"are\", \"you\"]"
]
},
{
"cell_type": "code",
"execution_count": 81,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'hello,there,how,are,you'"
]
},
"execution_count": 81,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"glue.join(words)"
]
},
{
"cell_type": "code",
"execution_count": 82,
"metadata": {},
"outputs": [],
"source": [
"s = \"this is a test\""
]
},
{
"cell_type": "code",
"execution_count": 83,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['this', 'is', 'a', 'test']"
]
},
"execution_count": 83,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"s.split()"
]
},
{
"cell_type": "code",
"execution_count": 85,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'this,is,a,test'"
]
},
"execution_count": 85,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"glue.join(s.split())"
]
},
{
"cell_type": "code",
"execution_count": 88,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'hello? there? how? are? you'"
]
},
"execution_count": 88,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"\"? \".join(words)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### random juxtapositions of nouns"
]
},
{
"cell_type": "code",
"execution_count": 186,
"metadata": {},
"outputs": [],
"source": [
"nouns_text = open(\"nouns.txt\").read()"
]
},
{
"cell_type": "code",
"execution_count": 188,
"metadata": {},
"outputs": [],
"source": [
"nouns = nouns_text.split(\"\\n\")"
]
},
{
"cell_type": "code",
"execution_count": 194,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'success'"
]
},
"execution_count": 194,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"random.choice(nouns)"
]
},
{
"cell_type": "code",
"execution_count": 208,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"lifeblood attractiveness\n"
]
}
],
"source": [
"print(\" \".join(random.sample(nouns, 2)))"
]
},
{
"cell_type": "code",
"execution_count": 212,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"oxygen plaza somewhere\n",
"sperm bonding fragmentation\n",
"mortality trauma technology\n",
"saucer immunity whisky\n",
"association proximity setup\n",
"semicolon bookmark pasta\n",
"monument voltage fragmentation\n",
"permission insanity legislation\n",
"means persona airtime\n",
"appointment acreage allegiance\n",
"supposition hands flashing\n",
"ranger pundit simulation\n",
"reassurance swimmer syntax\n",
"mouthpiece schoolboy miner\n"
]
}
],
"source": [
"print(\"\\n\".join([\" \".join(random.sample(nouns, 3)) for i in range(14)]))"
]
},
{
"cell_type": "code",
"execution_count": 222,
"metadata": {},
"outputs": [],
"source": [
"x = [\"a\", \"b\", \"c\", \"d\"]"
]
},
{
"cell_type": "code",
"execution_count": 224,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'a\\nb\\nc\\nd'"
]
},
"execution_count": 224,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"\"\\n\".join(x)"
]
},
{
"cell_type": "code",
"execution_count": 225,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"a\n",
"b\n",
"c\n",
"d\n"
]
}
],
"source": [
"print(\"\\n\".join(x))"
]
},
{
"cell_type": "code",
"execution_count": 227,
"metadata": {},
"outputs": [],
"source": [
"nouns = open(\"nouns.txt\").read().split(\"\\n\")"
]
},
{
"cell_type": "code",
"execution_count": 254,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'system'"
]
},
"execution_count": 254,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"random.choice(nouns)"
]
},
{
"cell_type": "code",
"execution_count": 264,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['reins', 'robber', 'absorption', 'consistency', 'lighting']"
]
},
"execution_count": 264,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"random.sample(nouns, 5)"
]
},
{
"cell_type": "code",
"execution_count": 265,
"metadata": {},
"outputs": [],
"source": [
"sea_rose = open(\"sea_rose.txt\").read().split(\"\\n\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"does the same thing:"
]
},
{
"cell_type": "code",
"execution_count": 277,
"metadata": {},
"outputs": [],
"source": [
"sea_rose = [item.strip() for item in open(\"sea_rose.txt\") if len(item.strip()) > 0]"
]
},
{
"cell_type": "code",
"execution_count": 278,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['Rose, harsh rose,',\n",
" 'marred and with stint of petals,',\n",
" 'meagre flower, thin,',\n",
" 'spare of leaf,',\n",
" 'more precious',\n",
" 'than a wet rose',\n",
" 'single on a stem --',\n",
" 'you are caught in the drift.',\n",
" 'Stunted, with small leaf,',\n",
" 'you are flung on the sand,',\n",
" 'you are lifted',\n",
" 'in the crisp sand',\n",
" 'that drives in the wind.',\n",
" 'Can the spice-rose',\n",
" 'drip such acrid fragrance',\n",
" 'hardened in a leaf?']"
]
},
"execution_count": 278,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"sea_rose"
]
},
{
"cell_type": "code",
"execution_count": 280,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'Rose, harsh rose,'"
]
},
"execution_count": 280,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"sea_rose[0]"
]
},
{
"cell_type": "code",
"execution_count": 281,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'hardened in a leaf?'"
]
},
"execution_count": 281,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"sea_rose[-1]"
]
},
{
"cell_type": "code",
"execution_count": 282,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['more precious',\n",
" 'than a wet rose',\n",
" 'single on a stem --',\n",
" 'you are caught in the drift.',\n",
" 'Stunted, with small leaf,']"
]
},
"execution_count": 282,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"sea_rose[4:9]"
]
},
{
"cell_type": "code",
"execution_count": 304,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['meagre flower, thin,', 'you are lifted', 'you are flung on the sand,']"
]
},
"execution_count": 304,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"random.sample(sea_rose, 3)"
]
},
{
"cell_type": "code",
"execution_count": 312,
"metadata": {
"scrolled": true
},
"outputs": [
{
"data": {
"text/plain": [
"['Can the spice-rose',\n",
" 'Rose, harsh rose,',\n",
" 'Stunted, with small leaf,',\n",
" 'drip such acrid fragrance',\n",
" 'hardened in a leaf?',\n",
" 'in the crisp sand',\n",
" 'marred and with stint of petals,',\n",
" 'meagre flower, thin,',\n",
" 'more precious',\n",
" 'single on a stem --',\n",
" 'spare of leaf,',\n",
" 'than a wet rose',\n",
" 'that drives in the wind.',\n",
" 'you are caught in the drift.',\n",
" 'you are flung on the sand,',\n",
" 'you are lifted']"
]
},
"execution_count": 312,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"sorted(sea_rose)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### all of the lines from shakespeare's sonnets that start with J\n",
"\n",
"in alphabetical order\n",
"\n",
" item.startswith(\"x\")\n",
" item[0] == \"x\""
]
},
{
"cell_type": "code",
"execution_count": 316,
"metadata": {},
"outputs": [],
"source": [
"w_lines = [item.strip() for item in open(\"sonnets.txt\") if item.startswith(\"W\")]"
]
},
{
"cell_type": "code",
"execution_count": 318,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Want nothing that the thought of hearts can mend;\n",
"Was it his spirit, by spirits taught to write,\n",
"Was it the proud full sail of his great verse,\n",
"Was us'd in giving gentle doom;\n",
"Was, sleeping, by a virgin hand disarm'd.\n",
"We sicken to shun sickness when we purge;\n",
"Weary with toil, I haste me to my bed,\n",
"Weeds among weeds, or flowers with flowers gather'd.\n",
"Weighs not the dust and injury of age,\n",
"Were an all-eating shame, and thriftless praise.\n",
"Were it not sinful then, striving to mend,\n",
"Were it not thy sour leisure gave sweet leave,\n",
"Were't aught to me I bore the canopy,\n",
"Wh'r we are mended, or wh'r better they,\n",
"What acceptable audit canst thou leave?\n",
"What can mine own praise to mine own self bring?\n",
"What freezings have I felt, what dark days seen!\n",
"What hast thou then more than thou hadst before?\n",
"What is your substance, whereof are you made,\n",
"What means the world to say it is not so?\n",
"What merit do I in my self respect,\n",
"What merit lived in me, that you should love\n",
"What need'st thou wound with cunning, when thy might\n",
"What old December's bareness everywhere!\n",
"What potions have I drunk of Siren tears,\n",
"What strained touches rhetoric can lend,\n",
"What thou dost foist upon us that is old;\n",
"What wretched errors hath my heart committed,\n",
"What's in the brain, that ink may character,\n",
"What's new to speak, what now to register,\n",
"Whate'er thy thoughts, or thy heart's workings be,\n",
"When I against myself with thee partake?\n",
"When I am sometime absent from thy heart,\n",
"When I behold the violet past prime,\n",
"When I break twenty? I am perjur'd most;\n",
"When I consider every thing that grows\n",
"When I do count the clock that tells the time,\n",
"When I have seen by Time's fell hand defac'd\n",
"When I have seen such interchange of state,\n",
"When I have seen the hungry ocean gain\n",
"When I perceive that men as plants increase,\n",
"When I perhaps compounded am with clay,\n",
"When I shall see thee frown on my defects,\n",
"When I was certain o'er incertainty,\n",
"When I was wont to greet it with my lays;\n",
"When all my best doth worship thy defect,\n",
"When all the breathers of this world are dead;\n",
"When as thy love hath cast his utmost sum,\n",
"When beauty lived and died as flowers do now,\n",
"When day's oppression is not eas'd by night,\n",
"When every private widow well may keep\n",
"When forty winters shall besiege thy brow,\n",
"When hours have drain'd his blood and fill'd his brow\n",
"When in dead night thy fair imperfect shade\n",
"When in disgrace with fortune and men's eyes\n",
"When in eternal lines to time thou grow'st,\n",
"When in the chronicle of wasted time\n",
"When in the least of them my life hath end.\n",
"When lofty trees I see barren of leaves,\n",
"When love, converted from the thing it was,\n",
"When most I wink, then do mine eyes best see,\n",
"When my love swears that she is made of truth,\n",
"When not to be receives reproach of being;\n",
"When other petty griefs have done their spite,\n",
"When others would give life, and bring a tomb.\n",
"When proud-pied April, dress'd in all his trim,\n",
"When rocks impregnable are not so stout,\n",
"When sometime lofty towers I see down-raz'd,\n",
"When sparkling stars twire not thou gild'st the even.\n",
"When summer's breath their masked buds discloses:\n",
"When swift extremity can seem but slow?\n",
"When that churl Death my bones with dust shall cover\n",
"When that mine eye is famish'd for a look,\n",
"When thou art all the better part of me?\n",
"When thou reviewest this, thou dost review\n",
"When thou shalt be dispos'd to set me light,\n",
"When thou thy self dost give invention light?\n",
"When to the sessions of sweet silent thought\n",
"When to unseeing eyes thy shade shines so!\n",
"When wasteful war shall statues overturn,\n",
"When what I seek, my weary travel's end,\n",
"When yellow leaves, or none, or few, do hang\n",
"When you entombed in men's eyes shall lie.\n",
"When you have bid your servant once adieu;\n",
"When your sweet issue your sweet form should bear.\n",
"Whence hast thou this becoming of things ill,\n",
"Where I may not remove nor be remov'd.\n",
"Where all the treasure of thy lusty days;\n",
"Where art thou Muse that thou forget'st so long,\n",
"Where beauty's veil doth cover every blot\n",
"Where thou art forced to break a twofold truth:--\n",
"Where wasteful Time debateth with decay\n",
"Where you may be, or your affairs suppose,\n",
"Wherein I should your great deserts repay,\n",
"Wherein it finds a joy above the rest:\n",
"Whereon the stars in secret influence comment;\n",
"Whereto all bonds do tie me day by day;\n",
"Whereto th' inviting time our fashion calls:\n",
"Whereto the judgment of my heart is tied?\n",
"Which I by lacking have supposed dead;\n",
"Which I new pay as if not paid before.\n",
"Which alters when it alteration finds,\n",
"Which borrow'd from this holy fire of Love,\n",
"Which bounteous gift thou shouldst in bounty cherish:\n",
"Which but to-day by feeding is allay'd,\n",
"Which by and by black night doth take away,\n",
"Which erst from heat did canopy the herd,\n",
"Which eyes not yet created shall o'er-read;\n",
"Which for memorial still with thee shall stay.\n",
"Which for their habitation chose out thee,\n",
"Which from Love's fire took heat perpetual,\n",
"Which happies those that pay the willing loan;\n",
"Which hath not figur'd to thee my true spirit?\n",
"Which have no correspondence with true sight;\n",
"Which heavily he answers with a groan,\n",
"Which hides your life, and shows not half your parts.\n",
"Which husbandry in honour might uphold,\n",
"Which in my bosom's shop is hanging still,\n",
"Which in their wills count bad what I think good?\n",
"Which in thy breast doth live, as thine in me:\n",
"Which is not mix'd with seconds, knows no art,\n",
"Which labouring for invention bear amiss\n",
"Which like two spirits do suggest me still:\n",
"Which many legions of true hearts had warm'd;\n",
"Which my heart knows the wide world's common place?\n",
"Which nightly gulls him with intelligence,\n",
"Which on thy soft cheek for complexion dwells\n",
"Which parts the shore, where two contracted new\n",
"Which proves more short than waste or ruining?\n",
"Which shall above that idle rank remain,\n",
"Which shall be most my glory being dumb;\n",
"Which should example where your equal grew.\n",
"Which should transport me farthest from your sight.\n",
"Which steals men's eyes and women's souls amazeth.\n",
"Which this, Time's pencil, or my pupil pen,\n",
"Which though it alter not love's sole effect,\n",
"Which time and thoughts so sweetly doth deceive,\n",
"Which to repair should be thy chief desire.\n",
"Which vulgar scandal stamp'd upon my brow;\n",
"Which works on leases of short-number'd hours,\n",
"Which, like a canker in the fragrant rose,\n",
"Which, like a jewel (hung in ghastly night,\n",
"Which, rank of goodness, would by ill be cur'd;\n",
"While comments of your praise richly compil'd,\n",
"While he insults o'er dull and speechless tribes:\n",
"While shadows like to thee do mock my sight?\n",
"While thou dost breathe, that pour'st into my verse\n",
"Whilst I alone did call upon thy aid,\n",
"Whilst I thy babe chase thee afar behind;\n",
"Whilst I, my sovereign, watch the clock for you,\n",
"Whilst I, whom fortune of such triumph bars\n",
"Whilst he upon your soundless deep doth ride;\n",
"Whilst her neglected child holds her in chase,\n",
"Whilst it hath thought itself so blessed never!\n",
"Whilst many nymphs that vow'd chaste life to keep\n",
"Whilst my poor lips which should that harvest reap,\n",
"Whilst that this shadow doth such substance give\n",
"Whilst, like a willing patient, I will drink,\n",
"Who all their parts of me to thee did give,\n",
"Who even but now come back again, assur'd,\n",
"Who for thy self art so unprovident.\n",
"Who hast by waning grown, and therein show'st\n",
"Who hateth thee that I do call my friend,\n",
"Who heaven itself for ornament doth use\n",
"Who is it that says most, which can say more,\n",
"Who lead thee in their riot even there\n",
"Who leaves unsway'd the likeness of a man,\n",
"Who lets so fair a house fall to decay,\n",
"Who plead for love, and look for recompense,\n",
"Who taught thee how to make me love thee more,\n",
"Who will believe my verse in time to come,\n",
"Who with his fear is put beside his part,\n",
"Who, all in one, one pleasing note do sing:\n",
"Who, in despite of view, is pleased to dote.\n",
"Who, moving others, are themselves as stone,\n",
"Whoe'er keeps me, let my heart be his guard;\n",
"Whoever hath her wish, thou hast thy 'Will,'\n",
"Whom thine eyes woo as mine importune thee:\n",
"Whose action is no stronger than a flower?\n",
"Whose fresh repair if now thou not renewest,\n",
"Whose influence is thine, and born of thee:\n",
"Whose strength's abundance weakens his own heart;\n",
"Whose worth's unknown, although his height be taken.\n",
"Why didst thou promise such a beauteous day,\n",
"Why dost thou pine within and suffer dearth,\n",
"Why is my verse so barren of new pride,\n",
"Why lov'st thou that which thou receiv'st not gladly,\n",
"Why of eyes' falsehood hast thou forged hooks,\n",
"Why should false painting imitate his cheek,\n",
"Why should he live, now Nature bankrupt is,\n",
"Why should my heart think that a several plot,\n",
"Why should poor beauty indirectly seek\n",
"Why so large cost, having so short a lease,\n",
"Why with the time do I not glance aside\n",
"Why write I still all one, ever the same,\n",
"Will be a tatter'd weed of small worth held:\n",
"Will play the tyrants to the very same\n",
"Will sourly leave her till he have prevail'd?\n",
"Wilt thou, whose will is large and spacious,\n",
"Wishing me like to one more rich in hope,\n",
"With April's first-born flowers, and all things rare,\n",
"With Time's injurious hand crush'd and o'erworn;\n",
"With all triumphant splendour on my brow;\n",
"With beauty's treasure ere it be self-kill'd.\n",
"With eager compounds we our palate urge;\n",
"With insufficiency my heart to sway?\n",
"With lines and wrinkles; when his youthful morn\n",
"With means more blessed than my barren rhyme?\n",
"With mine own weakness, being best acquainted,\n",
"With my extern the outward honouring,\n",
"With my love's picture then my eye doth feast,\n",
"With others thou shouldst not abhor my state:\n",
"With shifting change, as is false women's fashion:\n",
"With sun and moon, with earth and sea's rich gems,\n",
"With thy sweet fingers when thou gently sway'st\n",
"With ugly rack on his celestial face,\n",
"With virtuous wish would bear you living flowers,\n",
"With what I most enjoy contented least;\n",
"Within be fed, without be rich no more:\n",
"Within his bending sickle's compass come;\n",
"Within the gentle closure of my breast,\n",
"Within the knowledge of mine own desert,\n",
"Within thine own bud buriest thy content,\n",
"Without accusing you of injury.\n",
"Without all bail shall carry me away,\n",
"Without all ornament, itself and true,\n",
"Without this folly, age, and cold decay:\n",
"Without thy help, by me be borne alone.\n",
"Wooing his purity with her foul pride.\n",
"Worthy perusal stand against thy sight;\n",
"Wound me not with thine eye, but with thy tongue:\n"
]
}
],
"source": [
"print(\"\\n\".join(sorted(w_lines)))"
]
},
{
"cell_type": "code",
"execution_count": 323,
"metadata": {},
"outputs": [],
"source": [
"sonnets = open(\"sonnets.txt\").read().split(\"\\n\")"
]
},
{
"cell_type": "code",
"execution_count": 326,
"metadata": {
"collapsed": true
},
"outputs": [
{
"data": {
"text/plain": [
"['',\n",
" 'From fairest creatures we desire increase,',\n",
" \"That thereby beauty's rose might never die,\",\n",
" 'But as the riper should by time decease,',\n",
" 'His tender heir might bear his memory:',\n",
" 'But thou contracted to thine own bright eyes,',\n",
" \"Feed'st thy light's flame with self-substantial fuel,\",\n",
" 'Making a famine where abundance lies,',\n",
" 'Thy self thy foe, to thy sweet self too cruel:',\n",
" \"Thou that art now the world's fresh ornament,\",\n",
" 'And only herald to the gaudy spring,',\n",
" 'Within thine own bud buriest thy content,',\n",
" \"And tender churl mak'st waste in niggarding:\",\n",
" ' Pity the world, or else this glutton be,',\n",
" \" To eat the world's due, by the grave and thee.\",\n",
" '',\n",
" 'When forty winters shall besiege thy brow,',\n",
" \"And dig deep trenches in thy beauty's field,\",\n",
" \"Thy youth's proud livery so gazed on now,\",\n",
" \"Will be a tatter'd weed of small worth held: \",\n",
" 'Then being asked, where all thy beauty lies,',\n",
" 'Where all the treasure of thy lusty days; ',\n",
" 'To say, within thine own deep sunken eyes,',\n",
" 'Were an all-eating shame, and thriftless praise.',\n",
" \"How much more praise deserv'd thy beauty's use,\",\n",
" \"If thou couldst answer 'This fair child of mine\",\n",
" \"Shall sum my count, and make my old excuse,'\",\n",
" 'Proving his beauty by succession thine!',\n",
" ' This were to be new made when thou art old,',\n",
" \" And see thy blood warm when thou feel'st it cold.\",\n",
" '',\n",
" 'Look in thy glass and tell the face thou viewest',\n",
" 'Now is the time that face should form another;',\n",
" 'Whose fresh repair if now thou not renewest,',\n",
" 'Thou dost beguile the world, unbless some mother.',\n",
" \"For where is she so fair whose unear'd womb\",\n",
" 'Disdains the tillage of thy husbandry?',\n",
" 'Or who is he so fond will be the tomb,',\n",
" 'Of his self-love to stop posterity? ',\n",
" \"Thou art thy mother's glass and she in thee\",\n",
" 'Calls back the lovely April of her prime;',\n",
" 'So thou through windows of thine age shalt see,',\n",
" 'Despite of wrinkles this thy golden time.',\n",
" \" But if thou live, remember'd not to be,\",\n",
" ' Die single and thine image dies with thee.',\n",
" '',\n",
" 'Unthrifty loveliness, why dost thou spend',\n",
" \"Upon thy self thy beauty's legacy?\",\n",
" \"Nature's bequest gives nothing, but doth lend,\",\n",
" 'And being frank she lends to those are free:',\n",
" 'Then, beauteous niggard, why dost thou abuse',\n",
" 'The bounteous largess given thee to give?',\n",
" 'Profitless usurer, why dost thou use',\n",
" 'So great a sum of sums, yet canst not live?',\n",
" 'For having traffic with thy self alone,',\n",
" 'Thou of thy self thy sweet self dost deceive:',\n",
" 'Then how when nature calls thee to be gone,',\n",
" 'What acceptable audit canst thou leave?',\n",
" ' Thy unused beauty must be tombed with thee,',\n",
" \" Which, used, lives th' executor to be.\",\n",
" '',\n",
" 'Those hours, that with gentle work did frame',\n",
" 'The lovely gaze where every eye doth dwell,',\n",
" 'Will play the tyrants to the very same',\n",
" 'And that unfair which fairly doth excel;',\n",
" 'For never-resting time leads summer on',\n",
" 'To hideous winter, and confounds him there;',\n",
" 'Sap checked with frost, and lusty leaves quite gone,',\n",
" \"Beauty o'er-snowed and bareness every where:\",\n",
" \"Then were not summer's distillation left,\",\n",
" 'A liquid prisoner pent in walls of glass,',\n",
" \"Beauty's effect with beauty were bereft,\",\n",
" 'Nor it, nor no remembrance what it was:',\n",
" \" But flowers distill'd, though they with winter meet,\",\n",
" ' Leese but their show; their substance still lives sweet.',\n",
" '',\n",
" \"Then let not winter's ragged hand deface,\",\n",
" \"In thee thy summer, ere thou be distill'd:\",\n",
" 'Make sweet some vial; treasure thou some place',\n",
" \"With beauty's treasure ere it be self-kill'd.\",\n",
" 'That use is not forbidden usury,',\n",
" 'Which happies those that pay the willing loan;',\n",
" \"That's for thy self to breed another thee,\",\n",
" 'Or ten times happier, be it ten for one;',\n",
" 'Ten times thy self were happier than thou art,',\n",
" \"If ten of thine ten times refigur'd thee:\",\n",
" 'Then what could death do if thou shouldst depart,',\n",
" 'Leaving thee living in posterity?',\n",
" \" Be not self-will'd, for thou art much too fair\",\n",
" \" To be death's conquest and make worms thine heir.\",\n",
" '',\n",
" 'Lo! in the orient when the gracious light',\n",
" 'Lifts up his burning head, each under eye',\n",
" 'Doth homage to his new-appearing sight,',\n",
" 'Serving with looks his sacred majesty; ',\n",
" \"And having climb'd the steep-up heavenly hill,\",\n",
" 'Resembling strong youth in his middle age,',\n",
" 'Yet mortal looks adore his beauty still,',\n",
" 'Attending on his golden pilgrimage:',\n",
" 'But when from highmost pitch, with weary car,',\n",
" 'Like feeble age, he reeleth from the day,',\n",
" \"The eyes, 'fore duteous, now converted are\",\n",
" 'From his low tract, and look another way:',\n",
" ' So thou, thyself outgoing in thy noon:',\n",
" \" Unlook'd, on diest unless thou get a son.\",\n",
" '',\n",
" \"Music to hear, why hear'st thou music sadly?\",\n",
" 'Sweets with sweets war not, joy delights in joy:',\n",
" \"Why lov'st thou that which thou receiv'st not gladly,\",\n",
" \"Or else receiv'st with pleasure thine annoy?\",\n",
" 'If the true concord of well-tuned sounds,',\n",
" 'By unions married, do offend thine ear,',\n",
" 'They do but sweetly chide thee, who confounds',\n",
" 'In singleness the parts that thou shouldst bear. ',\n",
" 'Mark how one string, sweet husband to another,',\n",
" 'Strikes each in each by mutual ordering;',\n",
" 'Resembling sire and child and happy mother,',\n",
" 'Who, all in one, one pleasing note do sing:',\n",
" ' Whose speechless song being many, seeming one,',\n",
" \" Sings this to thee: 'Thou single wilt prove none.'\",\n",
" '',\n",
" \"Is it for fear to wet a widow's eye,\",\n",
" \"That thou consum'st thy self in single life?\",\n",
" 'Ah! if thou issueless shalt hap to die,',\n",
" 'The world will wail thee like a makeless wife;',\n",
" 'The world will be thy widow and still weep',\n",
" 'That thou no form of thee hast left behind,',\n",
" 'When every private widow well may keep',\n",
" \"By children's eyes, her husband's shape in mind:\",\n",
" 'Look! what an unthrift in the world doth spend',\n",
" 'Shifts but his place, for still the world enjoys it;',\n",
" \"But beauty's waste hath in the world an end,\",\n",
" 'And kept unused the user so destroys it.',\n",
" ' No love toward others in that bosom sits',\n",
" \" That on himself such murd'rous shame commits.\",\n",
" '',\n",
" \"For shame! deny that thou bear'st love to any,\",\n",
" 'Who for thy self art so unprovident.',\n",
" \"Grant, if thou wilt, thou art belov'd of many,\",\n",
" \"But that thou none lov'st is most evident:\",\n",
" \"For thou art so possess'd with murderous hate,\",\n",
" \"That 'gainst thy self thou stick'st not to conspire,\",\n",
" 'Seeking that beauteous roof to ruinate',\n",
" 'Which to repair should be thy chief desire.',\n",
" 'O! change thy thought, that I may change my mind:',\n",
" \"Shall hate be fairer lodg'd than gentle love?\",\n",
" 'Be, as thy presence is, gracious and kind,',\n",
" 'Or to thyself at least kind-hearted prove:',\n",
" ' Make thee another self for love of me,',\n",
" ' That beauty still may live in thine or thee.',\n",
" '',\n",
" \"As fast as thou shalt wane, so fast thou grow'st,\",\n",
" 'In one of thine, from that which thou departest;',\n",
" \"And that fresh blood which youngly thou bestow'st,\",\n",
" 'Thou mayst call thine when thou from youth convertest,',\n",
" 'Herein lives wisdom, beauty, and increase;',\n",
" 'Without this folly, age, and cold decay:',\n",
" 'If all were minded so, the times should cease',\n",
" 'And threescore year would make the world away.',\n",
" 'Let those whom nature hath not made for store,',\n",
" 'Harsh, featureless, and rude, barrenly perish:',\n",
" \"Look, whom she best endow'd, she gave thee more;\",\n",
" 'Which bounteous gift thou shouldst in bounty cherish:',\n",
" \" She carv'd thee for her seal, and meant thereby,\",\n",
" ' Thou shouldst print more, not let that copy die.',\n",
" '',\n",
" 'When I do count the clock that tells the time,',\n",
" 'And see the brave day sunk in hideous night;',\n",
" 'When I behold the violet past prime,',\n",
" \"And sable curls, all silvered o'er with white; \",\n",
" 'When lofty trees I see barren of leaves,',\n",
" 'Which erst from heat did canopy the herd,',\n",
" \"And summer's green all girded up in sheaves,\",\n",
" 'Borne on the bier with white and bristly beard,',\n",
" 'Then of thy beauty do I question make,',\n",
" 'That thou among the wastes of time must go,',\n",
" 'Since sweets and beauties do themselves forsake',\n",
" 'And die as fast as they see others grow;',\n",
" \" And nothing 'gainst Time's scythe can make defence\",\n",
" ' Save breed, to brave him when he takes thee hence.',\n",
" '',\n",
" 'O! that you were your self; but, love you are',\n",
" 'No longer yours, than you your self here live:',\n",
" 'Against this coming end you should prepare,',\n",
" 'And your sweet semblance to some other give:',\n",
" 'So should that beauty which you hold in lease',\n",
" 'Find no determination; then you were',\n",
" \"Yourself again, after yourself's decease,\",\n",
" 'When your sweet issue your sweet form should bear. ',\n",
" 'Who lets so fair a house fall to decay,',\n",
" 'Which husbandry in honour might uphold,',\n",
" \"Against the stormy gusts of winter's day\",\n",
" \"And barren rage of death's eternal cold?\",\n",
" ' O! none but unthrifts. Dear my love, you know,',\n",
" ' You had a father: let your son say so.',\n",
" '',\n",
" 'Not from the stars do I my judgement pluck;',\n",
" 'And yet methinks I have astronomy,',\n",
" 'But not to tell of good or evil luck,',\n",
" \"Of plagues, of dearths, or seasons' quality;\",\n",
" 'Nor can I fortune to brief minutes tell,',\n",
" 'Pointing to each his thunder, rain and wind,',\n",
" 'Or say with princes if it shall go well',\n",
" 'By oft predict that I in heaven find:',\n",
" 'But from thine eyes my knowledge I derive,',\n",
" 'And constant stars in them I read such art',\n",
" \"As 'Truth and beauty shall together thrive,\",\n",
" \"If from thyself, to store thou wouldst convert'; \",\n",
" ' Or else of thee this I prognosticate:',\n",
" \" 'Thy end is truth's and beauty's doom and date.'\",\n",
" '',\n",
" 'When I consider every thing that grows',\n",
" 'Holds in perfection but a little moment,',\n",
" 'That this huge stage presenteth nought but shows',\n",
" 'Whereon the stars in secret influence comment;',\n",
" 'When I perceive that men as plants increase,',\n",
" 'Cheered and checked even by the self-same sky,',\n",
" 'Vaunt in their youthful sap, at height decrease,',\n",
" 'And wear their brave state out of memory;',\n",
" 'Then the conceit of this inconstant stay',\n",
" 'Sets you most rich in youth before my sight,',\n",
" 'Where wasteful Time debateth with decay',\n",
" 'To change your day of youth to sullied night,',\n",
" ' And all in war with Time for love of you,',\n",
" ' As he takes from you, I engraft you new.',\n",
" '',\n",
" 'But wherefore do not you a mightier way',\n",
" 'Make war upon this bloody tyrant, Time?',\n",
" 'And fortify your self in your decay',\n",
" 'With means more blessed than my barren rhyme?',\n",
" 'Now stand you on the top of happy hours,',\n",
" 'And many maiden gardens, yet unset,',\n",
" 'With virtuous wish would bear you living flowers,',\n",
" 'Much liker than your painted counterfeit:',\n",
" 'So should the lines of life that life repair,',\n",
" \"Which this, Time's pencil, or my pupil pen,\",\n",
" 'Neither in inward worth nor outward fair,',\n",
" 'Can make you live your self in eyes of men.',\n",
" ' To give away yourself, keeps yourself still,',\n",
" ' And you must live, drawn by your own sweet skill.',\n",
" '',\n",
" 'Who will believe my verse in time to come,',\n",
" \"If it were fill'd with your most high deserts?\",\n",
" 'Though yet heaven knows it is but as a tomb',\n",
" 'Which hides your life, and shows not half your parts. ',\n",
" 'If I could write the beauty of your eyes,',\n",
" 'And in fresh numbers number all your graces,',\n",
" \"The age to come would say 'This poet lies;\",\n",
" \"Such heavenly touches ne'er touch'd earthly faces.'\",\n",
" \"So should my papers, yellow'd with their age,\",\n",
" \"Be scorn'd, like old men of less truth than tongue,\",\n",
" \"And your true rights be term'd a poet's rage\",\n",
" 'And stretched metre of an antique song:',\n",
" ' But were some child of yours alive that time,',\n",
" ' You should live twice,--in it, and in my rhyme.',\n",
" '',\n",
" \"Shall I compare thee to a summer's day?\",\n",
" 'Thou art more lovely and more temperate:',\n",
" 'Rough winds do shake the darling buds of May,',\n",
" \"And summer's lease hath all too short a date:\",\n",
" 'Sometime too hot the eye of heaven shines,',\n",
" \"And often is his gold complexion dimm'd,\",\n",
" 'And every fair from fair sometime declines,',\n",
" \"By chance, or nature's changing course untrimm'd: \",\n",
" 'But thy eternal summer shall not fade,',\n",
" \"Nor lose possession of that fair thou ow'st,\",\n",
" \"Nor shall death brag thou wander'st in his shade,\",\n",
" \"When in eternal lines to time thou grow'st,\",\n",
" ' So long as men can breathe, or eyes can see,',\n",
" ' So long lives this, and this gives life to thee.',\n",
" '',\n",
" \"Devouring Time, blunt thou the lion's paws,\",\n",
" 'And make the earth devour her own sweet brood;',\n",
" \"Pluck the keen teeth from the fierce tiger's jaws,\",\n",
" \"And burn the long-liv'd phoenix, in her blood;\",\n",
" 'Make glad and sorry seasons as thou fleets,',\n",
" \"And do whate'er thou wilt, swift-footed Time,\",\n",
" 'To the wide world and all her fading sweets;',\n",
" 'But I forbid thee one most heinous crime:',\n",
" \"O! carve not with thy hours my love's fair brow,\",\n",
" 'Nor draw no lines there with thine antique pen;',\n",
" 'Him in thy course untainted do allow',\n",
" \"For beauty's pattern to succeeding men. \",\n",
" ' Yet, do thy worst old Time: despite thy wrong,',\n",
" ' My love shall in my verse ever live young.',\n",
" '',\n",
" \"A woman's face with nature's own hand painted,\",\n",
" 'Hast thou, the master mistress of my passion;',\n",
" \"A woman's gentle heart, but not acquainted\",\n",
" \"With shifting change, as is false women's fashion:\",\n",
" 'An eye more bright than theirs, less false in rolling,',\n",
" 'Gilding the object whereupon it gazeth;',\n",
" \"A man in hue all 'hues' in his controlling,\",\n",
" \"Which steals men's eyes and women's souls amazeth.\",\n",
" 'And for a woman wert thou first created;',\n",
" 'Till Nature, as she wrought thee, fell a-doting,',\n",
" 'And by addition me of thee defeated,',\n",
" 'By adding one thing to my purpose nothing.',\n",
" \" But since she prick'd thee out for women's pleasure,\",\n",
" \" Mine be thy love and thy love's use their treasure.\",\n",
" '',\n",
" 'So is it not with me as with that Muse,',\n",
" \"Stirr'd by a painted beauty to his verse,\",\n",
" 'Who heaven itself for ornament doth use',\n",
" 'And every fair with his fair doth rehearse,',\n",
" \"Making a couplement of proud compare'\",\n",
" \"With sun and moon, with earth and sea's rich gems,\",\n",
" \"With April's first-born flowers, and all things rare,\",\n",
" \"That heaven's air in this huge rondure hems.\",\n",
" 'O! let me, true in love, but truly write,',\n",
" 'And then believe me, my love is as fair',\n",
" \"As any mother's child, though not so bright\",\n",
" \"As those gold candles fix'd in heaven's air:\",\n",
" ' Let them say more that like of hearsay well;',\n",
" ' I will not praise that purpose not to sell.',\n",
" '',\n",
" 'My glass shall not persuade me I am old,',\n",
" 'So long as youth and thou are of one date;',\n",
" \"But when in thee time's furrows I behold,\",\n",
" 'Then look I death my days should expiate. ',\n",
" 'For all that beauty that doth cover thee,',\n",
" 'Is but the seemly raiment of my heart,',\n",
" 'Which in thy breast doth live, as thine in me:',\n",
" 'How can I then be elder than thou art?',\n",
" 'O! therefore love, be of thyself so wary',\n",
" 'As I, not for myself, but for thee will;',\n",
" 'Bearing thy heart, which I will keep so chary',\n",
" 'As tender nurse her babe from faring ill.',\n",
" ' Presume not on th;heart when mine is slain,',\n",
" \" Thou gav'st me thine not to give back again.\",\n",
" '',\n",
" 'As an unperfect actor on the stage,',\n",
" 'Who with his fear is put beside his part,',\n",
" 'Or some fierce thing replete with too much rage,',\n",
" \"Whose strength's abundance weakens his own heart;\",\n",
" 'So I, for fear of trust, forget to say',\n",
" \"The perfect ceremony of love's rite,\",\n",
" \"And in mine own love's strength seem to decay,\",\n",
" \"O'ercharg'd with burthen of mine own love's might. \",\n",
" 'O! let my looks be then the eloquence',\n",
" 'And dumb presagers of my speaking breast,',\n",
" 'Who plead for love, and look for recompense,',\n",
" \"More than that tongue that more hath more express'd.\",\n",
" ' O! learn to read what silent love hath writ:',\n",
" \" To hear with eyes belongs to love's fine wit.\",\n",
" '',\n",
" \"Mine eye hath play'd the painter and hath stell'd,\",\n",
" \"Thy beauty's form in table of my heart;\",\n",
" \"My body is the frame wherein 'tis held,\",\n",
" \"And perspective it is best painter's art.\",\n",
" 'For through the painter must you see his skill,',\n",
" \"To find where your true image pictur'd lies,\",\n",
" \"Which in my bosom's shop is hanging still,\",\n",
" 'That hath his windows glazed with thine eyes.',\n",
" 'Now see what good turns eyes for eyes have done:',\n",
" 'Mine eyes have drawn thy shape, and thine for me',\n",
" 'Are windows to my breast, where-through the sun',\n",
" 'Delights to peep, to gaze therein on thee; ',\n",
" ' Yet eyes this cunning want to grace their art,',\n",
" ' They draw but what they see, know not the heart.',\n",
" '',\n",
" 'Let those who are in favour with their stars',\n",
" 'Of public honour and proud titles boast,',\n",
" 'Whilst I, whom fortune of such triumph bars',\n",
" \"Unlook'd for joy in that I honour most.\",\n",
" \"Great princes' favourites their fair leaves spread\",\n",
" \"But as the marigold at the sun's eye,\",\n",
" 'And in themselves their pride lies buried,',\n",
" 'For at a frown they in their glory die.',\n",
" 'The painful warrior famoused for fight,',\n",
" \"After a thousand victories once foil'd,\",\n",
" 'Is from the book of honour razed quite,',\n",
" \"And all the rest forgot for which he toil'd:\",\n",
" \"Then happy I, that love and am belov'd,\",\n",
" \"Where I may not remove nor be remov'd.\",\n",
" '',\n",
" 'Lord of my love, to whom in vassalage',\n",
" 'Thy merit hath my duty strongly knit,',\n",
" 'To thee I send this written embassage,',\n",
" 'To witness duty, not to show my wit:',\n",
" 'Duty so great, which wit so poor as mine',\n",
" 'May make seem bare, in wanting words to show it,',\n",
" 'But that I hope some good conceit of thine',\n",
" \"In thy soul's thought, all naked, will bestow it:\",\n",
" 'Till whatsoever star that guides my moving,',\n",
" 'Points on me graciously with fair aspect,',\n",
" \"And puts apparel on my tatter'd loving,\",\n",
" 'To show me worthy of thy sweet respect:',\n",
" ' Then may I dare to boast how I do love thee;',\n",
" ' Till then, not show my head where thou mayst prove me.',\n",
" '',\n",
" 'Weary with toil, I haste me to my bed,',\n",
" \"The dear respose for limbs with travel tir'd;\",\n",
" 'But then begins a journey in my head',\n",
" \"To work my mind, when body's work's expired: \",\n",
" 'For then my thoughts--from far where I abide--',\n",
" 'Intend a zealous pilgrimage to thee,',\n",
" 'And keep my drooping eyelids open wide,',\n",
" 'Looking on darkness which the blind do see:',\n",
" \"Save that my soul's imaginary sight\",\n",
" 'Presents thy shadow to my sightless view,',\n",
" 'Which, like a jewel (hung in ghastly night,',\n",
" 'Makes black night beauteous, and her old face new.',\n",
" ' Lo! thus, by day my limbs, by night my mind,',\n",
" ' For thee, and for myself, no quiet find.',\n",
" '',\n",
" 'How can I then return in happy plight,',\n",
" \"That am debarre'd the benefit of rest?\",\n",
" \"When day's oppression is not eas'd by night,\",\n",
" \"But day by night and night by day oppress'd,\",\n",
" \"And each, though enemies to either's reign,\",\n",
" 'Do in consent shake hands to torture me,',\n",
" 'The one by toil, the other to complain',\n",
" 'How far I toil, still farther off from thee. ',\n",
" 'I tell the day, to please him thou art bright,',\n",
" 'And dost him grace when clouds do blot the heaven:',\n",
" \"So flatter I the swart-complexion'd night,\",\n",
" \"When sparkling stars twire not thou gild'st the even.\",\n",
" ' But day doth daily draw my sorrows longer,',\n",
" \" And night doth nightly make grief's length seem stronger.\",\n",
" '',\n",
" \"When in disgrace with fortune and men's eyes\",\n",
" 'I all alone beweep my outcast state,',\n",
" 'And trouble deaf heaven with my bootless cries,',\n",
" 'And look upon myself, and curse my fate,',\n",
" 'Wishing me like to one more rich in hope,',\n",
" \"Featur'd like him, like him with friends possess'd,\",\n",
" \"Desiring this man's art, and that man's scope,\",\n",
" 'With what I most enjoy contented least;',\n",
" 'Yet in these thoughts my self almost despising,',\n",
" 'Haply I think on thee,-- and then my state,',\n",
" 'Like to the lark at break of day arising',\n",
" \"From sullen earth, sings hymns at heaven's gate,;\",\n",
" \" For thy sweet love remember'd such wealth brings\",\n",
" ' That then I scorn to change my state with kings.',\n",
" '',\n",
" 'When to the sessions of sweet silent thought',\n",
" 'I summon up remembrance of things past,',\n",
" 'I sigh the lack of many a thing I sought,',\n",
" \"And with old woes new wail my dear time's waste:\",\n",
" 'Then can I drown an eye, unused to flow,',\n",
" \"For precious friends hid in death's dateless night,\",\n",
" \"And weep afresh love's long since cancell'd woe,\",\n",
" \"And moan the expense of many a vanish'd sight:\",\n",
" 'Then can I grieve at grievances foregone,',\n",
" \"And heavily from woe to woe tell o'er\",\n",
" 'The sad account of fore-bemoaned moan,',\n",
" 'Which I new pay as if not paid before.',\n",
" ' But if the while I think on thee, dear friend,',\n",
" \" All losses are restor'd and sorrows end.\",\n",
" '',\n",
" 'Thy bosom is endeared with all hearts,',\n",
" 'Which I by lacking have supposed dead;',\n",
" \"And there reigns Love, and all Love's loving parts,\",\n",
" 'And all those friends which I thought buried.',\n",
" 'How many a holy and obsequious tear',\n",
" \"Hath dear religious love stol'n from mine eye,\",\n",
" 'As interest of the dead, which now appear',\n",
" \"But things remov'd that hidden in thee lie!\",\n",
" 'Thou art the grave where buried love doth live,',\n",
" 'Hung with the trophies of my lovers gone,',\n",
" 'Who all their parts of me to thee did give,',\n",
" 'That due of many now is thine alone:',\n",
" \" Their images I lov'd, I view in thee,\",\n",
" ' And thou--all they--hast all the all of me.',\n",
" '',\n",
" 'If thou survive my well-contented day,',\n",
" 'When that churl Death my bones with dust shall cover',\n",
" 'And shalt by fortune once more re-survey',\n",
" 'These poor rude lines of thy deceased lover,',\n",
" \"Compare them with the bett'ring of the time,\",\n",
" \"And though they be outstripp'd by every pen,\",\n",
" 'Reserve them for my love, not for their rhyme,',\n",
" 'Exceeded by the height of happier men.',\n",
" 'O! then vouchsafe me but this loving thought:',\n",
" \"'Had my friend's Muse grown with this growing age,\",\n",
" 'A dearer birth than this his love had brought,',\n",
" 'To march in ranks of better equipage:',\n",
" ' But since he died and poets better prove,',\n",
" \" Theirs for their style I'll read, his for his love'.\",\n",
" '',\n",
" 'Full many a glorious morning have I seen',\n",
" 'Flatter the mountain tops with sovereign eye,',\n",
" 'Kissing with golden face the meadows green,',\n",
" 'Gilding pale streams with heavenly alchemy;',\n",
" 'Anon permit the basest clouds to ride',\n",
" 'With ugly rack on his celestial face,',\n",
" 'And from the forlorn world his visage hide,',\n",
" 'Stealing unseen to west with this disgrace: ',\n",
" 'Even so my sun one early morn did shine,',\n",
" 'With all triumphant splendour on my brow;',\n",
" 'But out! alack! he was but one hour mine,',\n",
" \"The region cloud hath mask'd him from me now.\",\n",
" ' Yet him for this my love no whit disdaineth;',\n",
" \" Suns of the world may stain when heaven's sun staineth.\",\n",
" '',\n",
" 'Why didst thou promise such a beauteous day,',\n",
" 'And make me travel forth without my cloak,',\n",
" \"To let base clouds o'ertake me in my way,\",\n",
" 'Hiding thy bravery in their rotten smoke?',\n",
" \"'Tis not enough that through the cloud thou break,\",\n",
" 'To dry the rain on my storm-beaten face,',\n",
" 'For no man well of such a salve can speak,',\n",
" 'That heals the wound, and cures not the disgrace:',\n",
" 'Nor can thy shame give physic to my grief;',\n",
" 'Though thou repent, yet I have still the loss:',\n",
" \"The offender's sorrow lends but weak relief\",\n",
" \"To him that bears the strong offence's cross. \",\n",
" ' Ah! but those tears are pearl which thy love sheds,',\n",
" ' And they are rich and ransom all ill deeds.',\n",
" '',\n",
" \"No more be griev'd at that which thou hast done:\",\n",
" 'Roses have thorns, and silver fountains mud:',\n",
" 'Clouds and eclipses stain both moon and sun,',\n",
" 'And loathsome canker lives in sweetest bud.',\n",
" 'All men make faults, and even I in this,',\n",
" 'Authorizing thy trespass with compare,',\n",
" 'Myself corrupting, salving thy amiss,',\n",
" 'Excusing thy sins more than thy sins are;',\n",
" 'For to thy sensual fault I bring in sense,--',\n",
" 'Thy adverse party is thy advocate,--',\n",
" \"And 'gainst myself a lawful plea commence:\",\n",
" 'Such civil war is in my love and hate,',\n",
" ' That I an accessary needs must be,',\n",
" ' To that sweet thief which sourly robs from me.',\n",
" '',\n",
" 'Let me confess that we two must be twain,',\n",
" 'Although our undivided loves are one:',\n",
" 'So shall those blots that do with me remain,',\n",
" 'Without thy help, by me be borne alone.',\n",
" 'In our two loves there is but one respect,',\n",
" 'Though in our lives a separable spite,',\n",
" \"Which though it alter not love's sole effect,\",\n",
" \"Yet doth it steal sweet hours from love's delight.\",\n",
" 'I may not evermore acknowledge thee,',\n",
" 'Lest my bewailed guilt should do thee shame,',\n",
" 'Nor thou with public kindness honour me,',\n",
" 'Unless thou take that honour from thy name:',\n",
" ' But do not so, I love thee in such sort,',\n",
" ' As thou being mine, mine is thy good report.',\n",
" '',\n",
" 'As a decrepit father takes delight',\n",
" 'To see his active child do deeds of youth,',\n",
" \"So I, made lame by Fortune's dearest spite,\",\n",
" 'Take all my comfort of thy worth and truth; ',\n",
" 'For whether beauty, birth, or wealth, or wit,',\n",
" 'Or any of these all, or all, or more,',\n",
" 'Entitled in thy parts, do crowned sit,',\n",
" 'I make my love engrafted, to this store:',\n",
" \"So then I am not lame, poor, nor despis'd,\",\n",
" 'Whilst that this shadow doth such substance give',\n",
" \"That I in thy abundance am suffic'd,\",\n",
" 'And by a part of all thy glory live.',\n",
" ' Look what is best, that best I wish in thee:',\n",
" ' This wish I have; then ten times happy me!',\n",
" '',\n",
" 'How can my muse want subject to invent,',\n",
" \"While thou dost breathe, that pour'st into my verse\",\n",
" 'Thine own sweet argument, too excellent',\n",
" 'For every vulgar paper to rehearse?',\n",
" 'O! give thy self the thanks, if aught in me',\n",
" 'Worthy perusal stand against thy sight;',\n",
" \"For who's so dumb that cannot write to thee,\",\n",
" 'When thou thy self dost give invention light? ',\n",
" 'Be thou the tenth Muse, ten times more in worth',\n",
" 'Than those old nine which rhymers invocate;',\n",
" 'And he that calls on thee, let him bring forth',\n",
" 'Eternal numbers to outlive long date.',\n",
" ' If my slight muse do please these curious days,',\n",
" ' The pain be mine, but thine shall be the praise.',\n",
" '',\n",
" 'O! how thy worth with manners may I sing,',\n",
" 'When thou art all the better part of me?',\n",
" 'What can mine own praise to mine own self bring?',\n",
" \"And what is't but mine own when I praise thee?\",\n",
" 'Even for this, let us divided live,',\n",
" 'And our dear love lose name of single one,',\n",
" 'That by this separation I may give',\n",
" \"That due to thee which thou deserv'st alone.\",\n",
" 'O absence! what a torment wouldst thou prove,',\n",
" 'Were it not thy sour leisure gave sweet leave,',\n",
" 'To entertain the time with thoughts of love,',\n",
" 'Which time and thoughts so sweetly doth deceive, ',\n",
" ' And that thou teachest how to make one twain,',\n",
" ' By praising him here who doth hence remain.',\n",
" ' ',\n",
" 'Take all my loves, my love, yea take them all;',\n",
" 'What hast thou then more than thou hadst before?',\n",
" 'No love, my love, that thou mayst true love call;',\n",
" 'All mine was thine, before thou hadst this more.',\n",
" 'Then, if for my love, thou my love receivest,',\n",
" 'I cannot blame thee, for my love thou usest;',\n",
" \"But yet be blam'd, if thou thy self deceivest\",\n",
" 'By wilful taste of what thyself refusest.',\n",
" 'I do forgive thy robbery, gentle thief,',\n",
" 'Although thou steal thee all my poverty:',\n",
" 'And yet, love knows it is a greater grief',\n",
" \"To bear love's wrong, than hate's known injury.\",\n",
" ' Lascivious grace, in whom all ill well shows,',\n",
" ' Kill me with spites yet we must not be foes.',\n",
" '',\n",
" 'Those pretty wrongs that liberty commits,',\n",
" 'When I am sometime absent from thy heart,',\n",
" 'Thy beauty, and thy years full well befits,',\n",
" 'For still temptation follows where thou art.',\n",
" 'Gentle thou art, and therefore to be won,',\n",
" \"Beauteous thou art, therefore to be assail'd;\",\n",
" \"And when a woman woos, what woman's son\",\n",
" \"Will sourly leave her till he have prevail'd?\",\n",
" 'Ay me! but yet thou mightst my seat forbear,',\n",
" 'And chide thy beauty and thy straying youth,',\n",
" 'Who lead thee in their riot even there',\n",
" 'Where thou art forced to break a twofold truth:--',\n",
" ' Hers by thy beauty tempting her to thee,',\n",
" ' Thine by thy beauty being false to me.',\n",
" '',\n",
" 'That thou hast her it is not all my grief,',\n",
" 'And yet it may be said I loved her dearly;',\n",
" 'That she hath thee is of my wailing chief,',\n",
" 'A loss in love that touches me more nearly. ',\n",
" 'Loving offenders thus I will excuse ye:',\n",
" \"Thou dost love her, because thou know'st I love her;\",\n",
" 'And for my sake even so doth she abuse me,',\n",
" 'Suffering my friend for my sake to approve her.',\n",
" \"If I lose thee, my loss is my love's gain,\",\n",
" 'And losing her, my friend hath found that loss;',\n",
" 'Both find each other, and I lose both twain,',\n",
" 'And both for my sake lay on me this cross:',\n",
" \" But here's the joy; my friend and I are one;\",\n",
" ' Sweet flattery! then she loves but me alone.',\n",
" '',\n",
" 'When most I wink, then do mine eyes best see,',\n",
" 'For all the day they view things unrespected;',\n",
" 'But when I sleep, in dreams they look on thee,',\n",
" 'And darkly bright, are bright in dark directed.',\n",
" 'Then thou, whose shadow shadows doth make bright,',\n",
" \"How would thy shadow's form form happy show\",\n",
" 'To the clear day with thy much clearer light,',\n",
" 'When to unseeing eyes thy shade shines so! ',\n",
" 'How would, I say, mine eyes be blessed made',\n",
" 'By looking on thee in the living day,',\n",
" 'When in dead night thy fair imperfect shade',\n",
" 'Through heavy sleep on sightless eyes doth stay!',\n",
" ' All days are nights to see till I see thee,',\n",
" ' And nights bright days when dreams do show thee me.',\n",
" '',\n",
" 'If the dull substance of my flesh were thought,',\n",
" 'Injurious distance should not stop my way;',\n",
" 'For then despite of space I would be brought,',\n",
" 'From limits far remote, where thou dost stay.',\n",
" 'No matter then although my foot did stand',\n",
" \"Upon the farthest earth remov'd from thee;\",\n",
" 'For nimble thought can jump both sea and land,',\n",
" 'As soon as think the place where he would be.',\n",
" 'But, ah! thought kills me that I am not thought,',\n",
" 'To leap large lengths of miles when thou art gone,',\n",
" 'But that so much of earth and water wrought,',\n",
" \"I must attend, time's leisure with my moan;\",\n",
" ' Receiving nought by elements so slow',\n",
" \" But heavy tears, badges of either's woe.\",\n",
" '',\n",
" 'The other two, slight air, and purging fire',\n",
" 'Are both with thee, wherever I abide;',\n",
" 'The first my thought, the other my desire,',\n",
" 'These present-absent with swift motion slide.',\n",
" 'For when these quicker elements are gone',\n",
" 'In tender embassy of love to thee,',\n",
" 'My life, being made of four, with two alone',\n",
" \"Sinks down to death, oppress'd with melancholy;\",\n",
" \"Until life's composition be recur'd\",\n",
" \"By those swift messengers return'd from thee,\",\n",
" \"Who even but now come back again, assur'd,\",\n",
" 'Of thy fair health, recounting it to me:',\n",
" ' This told, I joy; but then no longer glad,',\n",
" ' I send them back again, and straight grow sad.',\n",
" '',\n",
" 'Mine eye and heart are at a mortal war,',\n",
" 'How to divide the conquest of thy sight;',\n",
" \"Mine eye my heart thy picture's sight would bar,\",\n",
" 'My heart mine eye the freedom of that right.',\n",
" 'My heart doth plead that thou in him dost lie,--',\n",
" \"A closet never pierc'd with crystal eyes--\",\n",
" 'But the defendant doth that plea deny,',\n",
" 'And says in him thy fair appearance lies.',\n",
" 'To side this title is impannelled',\n",
" 'A quest of thoughts, all tenants to the heart;',\n",
" 'And by their verdict is determined',\n",
" \"The clear eye's moiety, and the dear heart's part:\",\n",
" \" As thus; mine eye's due is thy outward part,\",\n",
" \" And my heart's right, thy inward love of heart.\",\n",
" '',\n",
" 'Betwixt mine eye and heart a league is took,',\n",
" 'And each doth good turns now unto the other:',\n",
" \"When that mine eye is famish'd for a look,\",\n",
" 'Or heart in love with sighs himself doth smother,',\n",
" \"With my love's picture then my eye doth feast,\",\n",
" 'And to the painted banquet bids my heart;',\n",
" \"Another time mine eye is my heart's guest,\",\n",
" 'And in his thoughts of love doth share a part:',\n",
" 'So, either by thy picture or my love,',\n",
" 'Thy self away, art present still with me;',\n",
" 'For thou not farther than my thoughts canst move,',\n",
" 'And I am still with them, and they with thee;',\n",
" ' Or, if they sleep, thy picture in my sight',\n",
" \" Awakes my heart, to heart's and eye's delight.\",\n",
" '',\n",
" 'How careful was I when I took my way,',\n",
" 'Each trifle under truest bars to thrust,',\n",
" 'That to my use it might unused stay',\n",
" 'From hands of falsehood, in sure wards of trust!',\n",
" 'But thou, to whom my jewels trifles are,',\n",
" 'Most worthy comfort, now my greatest grief,',\n",
" 'Thou best of dearest, and mine only care,',\n",
" 'Art left the prey of every vulgar thief. ',\n",
" \"Thee have I not lock'd up in any chest,\",\n",
" 'Save where thou art not, though I feel thou art,',\n",
" 'Within the gentle closure of my breast,',\n",
" 'From whence at pleasure thou mayst come and part;',\n",
" \" And even thence thou wilt be stol'n I fear,\",\n",
" ' For truth proves thievish for a prize so dear.',\n",
" '',\n",
" 'Against that time, if ever that time come,',\n",
" 'When I shall see thee frown on my defects,',\n",
" 'When as thy love hath cast his utmost sum,',\n",
" \"Call'd to that audit by advis'd respects;\",\n",
" 'Against that time when thou shalt strangely pass,',\n",
" 'And scarcely greet me with that sun, thine eye,',\n",
" 'When love, converted from the thing it was,',\n",
" 'Shall reasons find of settled gravity;',\n",
" 'Against that time do I ensconce me here,',\n",
" 'Within the knowledge of mine own desert,',\n",
" 'And this my hand, against my self uprear,',\n",
" 'To guard the lawful reasons on thy part: ',\n",
" ' To leave poor me thou hast the strength of laws,',\n",
" ' Since why to love I can allege no cause.',\n",
" '',\n",
" 'How heavy do I journey on the way,',\n",
" \"When what I seek, my weary travel's end,\",\n",
" 'Doth teach that ease and that repose to say,',\n",
" \"'Thus far the miles are measured from thy friend!'\",\n",
" 'The beast that bears me, tired with my woe,',\n",
" 'Plods dully on, to bear that weight in me,',\n",
" 'As if by some instinct the wretch did know',\n",
" \"His rider lov'd not speed, being made from thee:\",\n",
" 'The bloody spur cannot provoke him on,',\n",
" 'That sometimes anger thrusts into his hide,',\n",
" 'Which heavily he answers with a groan,',\n",
" 'More sharp to me than spurring to his side;',\n",
" ' For that same groan doth put this in my mind,',\n",
" ' My grief lies onward, and my joy behind.',\n",
" '',\n",
" 'Thus can my love excuse the slow offence',\n",
" 'Of my dull bearer when from thee I speed:',\n",
" 'From where thou art why should I haste me thence?',\n",
" 'Till I return, of posting is no need.',\n",
" 'O! what excuse will my poor beast then find,',\n",
" 'When swift extremity can seem but slow?',\n",
" 'Then should I spur, though mounted on the wind,',\n",
" 'In winged speed n:motion shall I know,',\n",
" 'Then can no horse with my desire keep pace;',\n",
" \"Therefore desire, of perfect'st love being made,\",\n",
" 'Shall neigh--no dull flesh--in his fiery race;',\n",
" 'But love, for love, thus shall excuse my jade,--',\n",
" \" 'Since from thee going, he went wilful-slow,\",\n",
" \" Towards thee I'll run, and give him leave to go.'\",\n",
" '',\n",
" 'So am I as the rich, whose blessed key,',\n",
" 'Can bring him to his sweet up-locked treasure,',\n",
" 'The which he will not every hour survey,',\n",
" 'For blunting the fine point of seldom pleasure. ',\n",
" 'Therefore are feasts so solemn and so rare,',\n",
" 'Since, seldom coming in that long year set,',\n",
" 'Like stones of worth they thinly placed are,',\n",
" 'Or captain jewels in the carcanet.',\n",
" 'So is the time that keeps you as my chest,',\n",
" 'Or as the wardrobe which the robe doth hide,',\n",
" 'To make some special instant special-blest,',\n",
" \"By new unfolding his imprison'd pride.\",\n",
" ' Blessed are you whose worthiness gives scope,',\n",
" ' Being had, to triumph; being lacked, to hope.',\n",
" '',\n",
" 'What is your substance, whereof are you made,',\n",
" 'That millions of strange shadows on you tend?',\n",
" 'Since every one, hath every one, one shade,',\n",
" 'And you but one, can every shadow lend.',\n",
" 'Describe Adonis, and the counterfeit',\n",
" 'Is poorly imitated after you;',\n",
" \"On Helen's cheek all art of beauty set,\",\n",
" 'And you in Grecian tires are painted new: ',\n",
" 'Speak of the spring, and foison of the year,',\n",
" 'The one doth shadow of your beauty show,',\n",
" 'The other as your bounty doth appear;',\n",
" 'And you in every blessed shape we know.',\n",
" ' In all external grace you have some part,',\n",
" ' But you like none, none you, for constant heart.',\n",
" '',\n",
" 'O! how much more doth beauty beauteous seem',\n",
" 'By that sweet ornament which truth doth give.',\n",
" 'The rose looks fair, but fairer we it deem',\n",
" 'For that sweet odour, which doth in it live.',\n",
" 'The canker blooms have full as deep a dye',\n",
" 'As the perfumed tincture of the roses.',\n",
" 'Hang on such thorns, and play as wantonly',\n",
" \"When summer's breath their masked buds discloses:\",\n",
" 'But, for their virtue only is their show,',\n",
" \"They live unwoo'd, and unrespected fade;\",\n",
" 'Die to themselves. Sweet roses do not so;',\n",
" 'Of their sweet deaths, are sweetest odours made: ',\n",
" ' And so of you, beauteous and lovely youth,',\n",
" ' When that shall vade, by verse distills your truth.',\n",
" '',\n",
" 'Not marble, nor the gilded monuments',\n",
" 'Of princes, shall outlive this powerful rhyme;',\n",
" 'But you shall shine more bright in these contents',\n",
" \"Than unswept stone, besmear'd with sluttish time.\",\n",
" 'When wasteful war shall statues overturn,',\n",
" 'And broils root out the work of masonry,',\n",
" \"Nor Mars his sword, nor war's quick fire shall burn\",\n",
" 'The living record of your memory.',\n",
" \"'Gainst death, and all-oblivious enmity\",\n",
" 'Shall you pace forth; your praise shall still find room',\n",
" 'Even in the eyes of all posterity',\n",
" 'That wear this world out to the ending doom.',\n",
" ' So, till the judgment that yourself arise,',\n",
" \" You live in this, and dwell in lovers' eyes.\",\n",
" '',\n",
" 'Sweet love, renew thy force; be it not said',\n",
" 'Thy edge should blunter be than appetite,',\n",
" \"Which but to-day by feeding is allay'd,\",\n",
" 'To-morrow sharpened in his former might:',\n",
" 'So, love, be thou, although to-day thou fill',\n",
" 'Thy hungry eyes, even till they wink with fulness,',\n",
" 'To-morrow see again, and do not kill',\n",
" 'The spirit of love, with a perpetual dulness.',\n",
" 'Let this sad interim like the ocean be',\n",
" 'Which parts the shore, where two contracted new',\n",
" 'Come daily to the banks, that when they see',\n",
" 'Return of love, more blest may be the view;',\n",
" ' Or call it winter, which being full of care,',\n",
" \" Makes summer's welcome, thrice more wished, more rare.\",\n",
" '',\n",
" 'Being your slave what should I do but tend,',\n",
" 'Upon the hours, and times of your desire?',\n",
" 'I have no precious time at all to spend;',\n",
" 'Nor services to do, till you require. ',\n",
" 'Nor dare I chide the world-without-end hour,',\n",
" 'Whilst I, my sovereign, watch the clock for you,',\n",
" 'Nor think the bitterness of absence sour,',\n",
" 'When you have bid your servant once adieu;',\n",
" 'Nor dare I question with my jealous thought',\n",
" 'Where you may be, or your affairs suppose,',\n",
" 'But, like a sad slave, stay and think of nought',\n",
" 'Save, where you are, how happy you make those.',\n",
" ' So true a fool is love, that in your will,',\n",
" ' Though you do anything, he thinks no ill.',\n",
" '',\n",
" 'That god forbid, that made me first your slave,',\n",
" 'I should in thought control your times of pleasure,',\n",
" 'Or at your hand the account of hours to crave,',\n",
" 'Being your vassal, bound to stay your leisure!',\n",
" 'O! let me suffer, being at your beck,',\n",
" \"The imprison'd absence of your liberty;\",\n",
" 'And patience, tame to sufferance, bide each check,',\n",
" 'Without accusing you of injury. ',\n",
" 'Be where you list, your charter is so strong',\n",
" 'That you yourself may privilage your time',\n",
" 'To what you will; to you it doth belong',\n",
" 'Yourself to pardon of self-doing crime.',\n",
" ' I am to wait, though waiting so be hell,',\n",
" ' Not blame your pleasure be it ill or well.',\n",
" '',\n",
" 'If there be nothing new, but that which is',\n",
" \"Hath been before, how are our brains beguil'd,\",\n",
" 'Which labouring for invention bear amiss',\n",
" 'The second burthen of a former child!',\n",
" 'O! that record could with a backward look,',\n",
" 'Even of five hundred courses of the sun,',\n",
" 'Show me your image in some antique book,',\n",
" 'Since mind at first in character was done!',\n",
" 'That I might see what the old world could say',\n",
" 'To this composed wonder of your frame;',\n",
" \"Wh'r we are mended, or wh'r better they,\",\n",
" 'Or whether revolution be the same. ',\n",
" ' O! sure I am the wits of former days,',\n",
" ' To subjects worse have given admiring praise.',\n",
" '',\n",
" 'Like as the waves make towards the pebbled shore,',\n",
" 'So do our minutes hasten to their end;',\n",
" 'Each changing place with that which goes before,',\n",
" 'In sequent toil all forwards do contend.',\n",
" 'Nativity, once in the main of light,',\n",
" \"Crawls to maturity, wherewith being crown'd,\",\n",
" \"Crooked eclipses 'gainst his glory fight,\",\n",
" 'And Time that gave doth now his gift confound.',\n",
" 'Time doth transfix the flourish set on youth',\n",
" \"And delves the parallels in beauty's brow,\",\n",
" \"Feeds on the rarities of nature's truth,\",\n",
" 'And nothing stands but for his scythe to mow:',\n",
" ' And yet to times in hope, my verse shall stand.',\n",
" ' Praising thy worth, despite his cruel hand.',\n",
" '',\n",
" 'Is it thy will, thy image should keep open',\n",
" 'My heavy eyelids to the weary night?',\n",
" 'Dost thou desire my slumbers should be broken,',\n",
" 'While shadows like to thee do mock my sight?',\n",
" \"Is it thy spirit that thou send'st from thee\",\n",
" 'So far from home into my deeds to pry,',\n",
" 'To find out shames and idle hours in me,',\n",
" 'The scope and tenure of thy jealousy?',\n",
" 'O, no! thy love, though much, is not so great:',\n",
" 'It is my love that keeps mine eye awake:',\n",
" 'Mine own true love that doth my rest defeat,',\n",
" 'To play the watchman ever for thy sake:',\n",
" ' For thee watch I, whilst thou dost wake elsewhere,',\n",
" ' From me far off, with others all too near.',\n",
" '',\n",
" 'Sin of self-love possesseth all mine eye',\n",
" 'And all my soul, and all my every part;',\n",
" 'And for this sin there is no remedy,',\n",
" 'It is so grounded inward in my heart.',\n",
" 'Methinks no face so gracious is as mine,',\n",
" 'No shape so true, no truth of such account;',\n",
" 'And for myself mine own worth do define,',\n",
" 'As I all other in all worths surmount.',\n",
" 'But when my glass shows me myself indeed',\n",
" \"Beated and chopp'd with tanned antiquity,\",\n",
" 'Mine own self-love quite contrary I read;',\n",
" 'Self so self-loving were iniquity.',\n",
" \" 'Tis thee,--myself,--that for myself I praise,\",\n",
" ' Painting my age with beauty of thy days.',\n",
" '',\n",
" 'Against my love shall be as I am now,',\n",
" \"With Time's injurious hand crush'd and o'erworn;\",\n",
" \"When hours have drain'd his blood and fill'd his brow\",\n",
" 'With lines and wrinkles; when his youthful morn',\n",
" \"Hath travell'd on to age's steepy night;\",\n",
" \"And all those beauties whereof now he's king\",\n",
" 'Are vanishing, or vanished out of sight,',\n",
" 'Stealing away the treasure of his spring; ',\n",
" 'For such a time do I now fortify',\n",
" \"Against confounding age's cruel knife,\",\n",
" 'That he shall never cut from memory',\n",
" \"My sweet love's beauty, though my lover's life:\",\n",
" ' His beauty shall in these black lines be seen,',\n",
" ' And they shall live, and he in them still green.',\n",
" '',\n",
" \"When I have seen by Time's fell hand defac'd\",\n",
" 'The rich-proud cost of outworn buried age;',\n",
" \"When sometime lofty towers I see down-raz'd,\",\n",
" 'And brass eternal slave to mortal rage;',\n",
" 'When I have seen the hungry ocean gain',\n",
" 'Advantage on the kingdom of the shore,',\n",
" 'And the firm soil win of the watery main,',\n",
" 'Increasing store with loss, and loss with store;',\n",
" 'When I have seen such interchange of state,',\n",
" 'Or state itself confounded, to decay;',\n",
" 'Ruin hath taught me thus to ruminate--',\n",
" 'That Time will come and take my love away. ',\n",
" ' This thought is as a death which cannot choose',\n",
" ' But weep to have, that which it fears to lose.',\n",
" '',\n",
" 'Since brass, nor stone, nor earth, nor boundless sea,',\n",
" \"But sad mortality o'ersways their power,\",\n",
" 'How with this rage shall beauty hold a plea,',\n",
" 'Whose action is no stronger than a flower?',\n",
" \"O! how shall summer's honey breath hold out,\",\n",
" 'Against the wrackful siege of battering days,',\n",
" 'When rocks impregnable are not so stout,',\n",
" 'Nor gates of steel so strong but Time decays?',\n",
" 'O fearful meditation! where, alack,',\n",
" \"Shall Time's best jewel from Time's chest lie hid?\",\n",
" 'Or what strong hand can hold his swift foot back?',\n",
" 'Or who his spoil of beauty can forbid?',\n",
" ' O! none, unless this miracle have might,',\n",
" ' That in black ink my love may still shine bright.',\n",
" '',\n",
" 'Tired with all these, for restful death I cry,',\n",
" 'As to behold desert a beggar born,',\n",
" \"And needy nothing trimm'd in jollity,\",\n",
" 'And purest faith unhappily forsworn,',\n",
" \"And gilded honour shamefully misplac'd,\",\n",
" 'And maiden virtue rudely strumpeted,',\n",
" \"And right perfection wrongfully disgrac'd,\",\n",
" 'And strength by limping sway disabled',\n",
" 'And art made tongue-tied by authority,',\n",
" 'And folly--doctor-like--controlling skill,',\n",
" \"And simple truth miscall'd simplicity,\",\n",
" 'And captive good attending captain ill:',\n",
" \" Tir'd with all these, from these would I be gone,\",\n",
" ' Save that, to die, I leave my love alone.',\n",
" '',\n",
" 'Ah! wherefore with infection should he live,',\n",
" 'And with his presence grace impiety,',\n",
" 'That sin by him advantage should achieve,',\n",
" 'And lace itself with his society? ',\n",
" 'Why should false painting imitate his cheek,',\n",
" 'And steel dead seeming of his living hue?',\n",
" 'Why should poor beauty indirectly seek',\n",
" 'Roses of shadow, since his rose is true?',\n",
" 'Why should he live, now Nature bankrupt is,',\n",
" ...]"
]
},
"execution_count": 326,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"sonnets"
]
},
{
"cell_type": "code",
"execution_count": 324,
"metadata": {},
"outputs": [],
"source": [
"exclamations = [item for item in sonnets if item.endswith(\"!\")]"
]
},
{
"cell_type": "code",
"execution_count": 325,
"metadata": {
"scrolled": false
},
"outputs": [
{
"data": {
"text/plain": [
"['Proving his beauty by succession thine!',\n",
" \"But things remov'd that hidden in thee lie!\",\n",
" ' This wish I have; then ten times happy me!',\n",
" 'Through heavy sleep on sightless eyes doth stay!',\n",
" 'From hands of falsehood, in sure wards of trust!',\n",
" 'Being your vassal, bound to stay your leisure!',\n",
" 'The second burthen of a former child!',\n",
" 'Since mind at first in character was done!',\n",
" 'To make me tongue-tied speaking of your fame!',\n",
" 'Happy to have thy love, happy to die!',\n",
" ' If thy sweet virtue answer not thy show!',\n",
" 'Doth spot the beauty of thy budding name!',\n",
" 'And all things turns to fair that eyes can see!',\n",
" 'If like a lamb he could his looks translate!',\n",
" 'if thou wouldst use the strength of all thy state!',\n",
" 'From thee, the pleasure of the fleeting year!',\n",
" 'What freezings have I felt, what dark days seen!',\n",
" 'Than when it hath my added praise beside!',\n",
" 'O! blame me not, if I no more can write!',\n",
" 'Still losing when I saw myself to win!',\n",
" 'Whilst it hath thought itself so blessed never!',\n",
" 'In the distraction of this madding fever!',\n",
" 'The humble salve, which wounded bosoms fits!',\n",
" 'Yet fear her, O thou minion of her pleasure!',\n",
" \"At the wood's boldness by thee blushing stand!\",\n",
" 'For that deep wound it gives my friend and me!',\n",
" ' By self-example mayst thou be denied!',\n",
" ' To swear against the truth so foul a lie.!']"
]
},
"execution_count": 325,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"exclamations"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"the last word of every line that ends with an exclamation point"
]
},
{
"cell_type": "code",
"execution_count": 328,
"metadata": {},
"outputs": [],
"source": [
"x = \"hello there how are you\""
]
},
{
"cell_type": "code",
"execution_count": 329,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['hello', 'there', 'how', 'are', 'you']"
]
},
"execution_count": 329,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"x.split()"
]
},
{
"cell_type": "code",
"execution_count": 330,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'you'"
]
},
"execution_count": 330,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"x.split()[-1]"
]
},
{
"cell_type": "code",
"execution_count": 332,
"metadata": {},
"outputs": [],
"source": [
"exclaim_words = [item.split()[-1][:-1] for item in exclamations]"
]
},
{
"cell_type": "code",
"execution_count": 350,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"logic state!\n"
]
}
],
"source": [
"print(random.choice(nouns) + \" \" + random.choice(exclaim_words) + \"!\")"
]
},
{
"cell_type": "code",
"execution_count": 354,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['O! change thy thought, that all of the William Shakespeares may change my mind:',\n",
" 'When all of the William Shakespeares do count the clock that tells the time,',\n",
" 'When all of the William Shakespeares behold the violet past prime,',\n",
" 'When lofty trees all of the William Shakespeares see barren of leaves,',\n",
" 'Then of thy beauty do all of the William Shakespeares question make,',\n",
" 'Not from the stars do all of the William Shakespeares my judgement pluck;',\n",
" 'And yet methinks all of the William Shakespeares have astronomy,',\n",
" 'Nor can all of the William Shakespeares fortune to brief minutes tell,',\n",
" 'By oft predict that all of the William Shakespeares in heaven find:',\n",
" 'But from thine eyes my knowledge all of the William Shakespeares derive,',\n",
" 'And constant stars in them all of the William Shakespeares read such art',\n",
" ' Or else of thee this all of the William Shakespeares prognosticate:',\n",
" 'When all of the William Shakespeares consider every thing that grows',\n",
" 'When all of the William Shakespeares perceive that men as plants increase,',\n",
" ' As he takes from you, all of the William Shakespeares engraft you new.',\n",
" 'If all of the William Shakespeares could write the beauty of your eyes,',\n",
" \"Shall all of the William Shakespeares compare thee to a summer's day?\",\n",
" 'But all of the William Shakespeares forbid thee one most heinous crime:',\n",
" ' all of the William Shakespeares will not praise that purpose not to sell.',\n",
" 'My glass shall not persuade me all of the William Shakespeares am old,',\n",
" \"But when in thee time's furrows all of the William Shakespeares behold,\",\n",
" 'Then look all of the William Shakespeares death my days should expiate. ',\n",
" 'How can all of the William Shakespeares then be elder than thou art?',\n",
" 'Bearing thy heart, which all of the William Shakespeares will keep so chary',\n",
" \"Unlook'd for joy in that all of the William Shakespeares honour most.\",\n",
" \"Where all of the William Shakespeares may not remove nor be remov'd.\",\n",
" 'To thee all of the William Shakespeares send this written embassage,',\n",
" 'But that all of the William Shakespeares hope some good conceit of thine',\n",
" ' Then may all of the William Shakespeares dare to boast how all of the William Shakespeares do love thee;',\n",
" 'Weary with toil, all of the William Shakespeares haste me to my bed,',\n",
" 'For then my thoughts--from far where all of the William Shakespeares abide--',\n",
" 'How can all of the William Shakespeares then return in happy plight,',\n",
" 'How far all of the William Shakespeares toil, still farther off from thee. ',\n",
" 'all of the William Shakespeares tell the day, to please him thou art bright,',\n",
" \"So flatter all of the William Shakespeares the swart-complexion'd night,\",\n",
" 'all of the William Shakespeares all alone beweep my outcast state,',\n",
" 'With what all of the William Shakespeares most enjoy contented least;',\n",
" 'Haply all of the William Shakespeares think on thee,-- and then my state,',\n",
" ' That then all of the William Shakespeares scorn to change my state with kings.',\n",
" 'all of the William Shakespeares summon up remembrance of things past,',\n",
" 'all of the William Shakespeares sigh the lack of many a thing all of the William Shakespeares sought,',\n",
" 'Then can all of the William Shakespeares drown an eye, unused to flow,',\n",
" 'Then can all of the William Shakespeares grieve at grievances foregone,',\n",
" 'Which all of the William Shakespeares new pay as if not paid before.',\n",
" ' But if the while all of the William Shakespeares think on thee, dear friend,',\n",
" 'Which all of the William Shakespeares by lacking have supposed dead;',\n",
" 'And all those friends which all of the William Shakespeares thought buried.',\n",
" \" Their images all of the William Shakespeares lov'd, all of the William Shakespeares view in thee,\",\n",
" 'Full many a glorious morning have all of the William Shakespeares seen',\n",
" 'Though thou repent, yet all of the William Shakespeares have still the loss:',\n",
" 'All men make faults, and even all of the William Shakespeares in this,',\n",
" 'For to thy sensual fault all of the William Shakespeares bring in sense,--',\n",
" ' That all of the William Shakespeares an accessary needs must be,',\n",
" 'all of the William Shakespeares may not evermore acknowledge thee,',\n",
" ' But do not so, all of the William Shakespeares love thee in such sort,',\n",
" 'all of the William Shakespeares make my love engrafted, to this store:',\n",
" \"So then all of the William Shakespeares am not lame, poor, nor despis'd,\",\n",
" \"That all of the William Shakespeares in thy abundance am suffic'd,\",\n",
" ' Look what is best, that best all of the William Shakespeares wish in thee:',\n",
" ' This wish all of the William Shakespeares have; then ten times happy me!',\n",
" 'O! how thy worth with manners may all of the William Shakespeares sing,',\n",
" \"And what is't but mine own when all of the William Shakespeares praise thee?\",\n",
" 'That by this separation all of the William Shakespeares may give',\n",
" 'all of the William Shakespeares cannot blame thee, for my love thou usest;',\n",
" 'all of the William Shakespeares do forgive thy robbery, gentle thief,',\n",
" 'When all of the William Shakespeares am sometime absent from thy heart,',\n",
" 'And yet it may be said all of the William Shakespeares loved her dearly;',\n",
" 'Loving offenders thus all of the William Shakespeares will excuse ye:',\n",
" \"Thou dost love her, because thou know'st all of the William Shakespeares love her;\",\n",
" \"If all of the William Shakespeares lose thee, my loss is my love's gain,\",\n",
" 'Both find each other, and all of the William Shakespeares lose both twain,',\n",
" \" But here's the joy; my friend and all of the William Shakespeares are one;\",\n",
" 'When most all of the William Shakespeares wink, then do mine eyes best see,',\n",
" 'But when all of the William Shakespeares sleep, in dreams they look on thee,',\n",
" 'How would, all of the William Shakespeares say, mine eyes be blessed made',\n",
" ' All days are nights to see till all of the William Shakespeares see thee,',\n",
" 'For then despite of space all of the William Shakespeares would be brought,',\n",
" 'But, ah! thought kills me that all of the William Shakespeares am not thought,',\n",
" \"all of the William Shakespeares must attend, time's leisure with my moan;\",\n",
" 'Are both with thee, wherever all of the William Shakespeares abide;',\n",
" ' This told, all of the William Shakespeares joy; but then no longer glad,',\n",
" ' all of the William Shakespeares send them back again, and straight grow sad.',\n",
" 'And all of the William Shakespeares am still with them, and they with thee;',\n",
" 'How careful was all of the William Shakespeares when all of the William Shakespeares took my way,',\n",
" \"Thee have all of the William Shakespeares not lock'd up in any chest,\",\n",
" 'Save where thou art not, though all of the William Shakespeares feel thou art,',\n",
" \" And even thence thou wilt be stol'n all of the William Shakespeares fear,\",\n",
" 'When all of the William Shakespeares shall see thee frown on my defects,',\n",
" 'Against that time do all of the William Shakespeares ensconce me here,',\n",
" ' Since why to love all of the William Shakespeares can allege no cause.',\n",
" 'How heavy do all of the William Shakespeares journey on the way,',\n",
" \"When what all of the William Shakespeares seek, my weary travel's end,\",\n",
" 'Of my dull bearer when from thee all of the William Shakespeares speed:',\n",
" 'From where thou art why should all of the William Shakespeares haste me thence?',\n",
" 'Till all of the William Shakespeares return, of posting is no need.',\n",
" 'Then should all of the William Shakespeares spur, though mounted on the wind,',\n",
" 'In winged speed n:motion shall all of the William Shakespeares know,',\n",
" 'So am all of the William Shakespeares as the rich, whose blessed key,',\n",
" 'Being your slave what should all of the William Shakespeares do but tend,',\n",
" 'all of the William Shakespeares have no precious time at all to spend;',\n",
" 'Nor dare all of the William Shakespeares chide the world-without-end hour,',\n",
" 'Nor dare all of the William Shakespeares question with my jealous thought',\n",
" 'all of the William Shakespeares should in thought control your times of pleasure,',\n",
" ' all of the William Shakespeares am to wait, though waiting so be hell,',\n",
" 'That all of the William Shakespeares might see what the old world could say',\n",
" ' O! sure all of the William Shakespeares am the wits of former days,',\n",
" 'As all of the William Shakespeares all other in all worths surmount.',\n",
" 'Mine own self-love quite contrary all of the William Shakespeares read;',\n",
" \" 'Tis thee,--myself,--that for myself all of the William Shakespeares praise,\",\n",
" 'Against my love shall be as all of the William Shakespeares am now,',\n",
" 'For such a time do all of the William Shakespeares now fortify',\n",
" \"When all of the William Shakespeares have seen by Time's fell hand defac'd\",\n",
" \"When sometime lofty towers all of the William Shakespeares see down-raz'd,\",\n",
" 'When all of the William Shakespeares have seen the hungry ocean gain',\n",
" 'When all of the William Shakespeares have seen such interchange of state,',\n",
" 'Tired with all these, for restful death all of the William Shakespeares cry,',\n",
" \" Tir'd with all these, from these would all of the William Shakespeares be gone,\",\n",
" ' Save that, to die, all of the William Shakespeares leave my love alone.',\n",
" 'No longer mourn for me when all of the William Shakespeares am dead',\n",
" 'Give warning to the world that all of the William Shakespeares am fled',\n",
" 'The hand that writ it, for all of the William Shakespeares love you so,',\n",
" 'That all of the William Shakespeares in your sweet thoughts would be forgot,',\n",
" 'O! if,--all of the William Shakespeares say you look upon this verse,',\n",
" 'When all of the William Shakespeares perhaps compounded am with clay,',\n",
" ' And mock you with me after all of the William Shakespeares am gone.',\n",
" ' For all of the William Shakespeares am shamed by that which all of the William Shakespeares bring forth,',\n",
" 'And for the peace of you all of the William Shakespeares hold such strife',\n",
" ' Thus do all of the William Shakespeares pine and surfeit day by day,',\n",
" 'Why with the time do all of the William Shakespeares not glance aside',\n",
" 'Why write all of the William Shakespeares still all one, ever the same,',\n",
" 'O! know sweet love all of the William Shakespeares always write of you,',\n",
" 'So oft have all of the William Shakespeares invoked thee for my Muse,',\n",
" 'Yet be most proud of that which all of the William Shakespeares compile,',\n",
" 'Whilst all of the William Shakespeares alone did call upon thy aid,',\n",
" 'all of the William Shakespeares grant, sweet love, thy lovely argument',\n",
" 'O! how all of the William Shakespeares faint when all of the William Shakespeares of you do write,',\n",
" \"Or, being wrack'd, all of the William Shakespeares am a worthless boat,\",\n",
" ' Then if he thrive and all of the William Shakespeares be cast away,',\n",
" 'Or all of the William Shakespeares shall live your epitaph to make,',\n",
" 'Or you survive when all of the William Shakespeares in earth am rotten;',\n",
" 'all of the William Shakespeares grant thou wert not married to my Muse,',\n",
" 'all of the William Shakespeares never saw that you did painting need,',\n",
" 'all of the William Shakespeares found, or thought all of the William Shakespeares found, you did exceed',\n",
" 'And therefore have all of the William Shakespeares slept in your report,',\n",
" 'For all of the William Shakespeares impair not beauty being mute,',\n",
" 'all of the William Shakespeares think good thoughts, whilst others write good words,',\n",
" \"Hearing you praised, all of the William Shakespeares say ''tis so, 'tis true,'\",\n",
" 'all of the William Shakespeares was not sick of any fear from thence:',\n",
" ' Then lacked all of the William Shakespeares matter; that enfeebled mine.',\n",
" 'For how do all of the William Shakespeares hold thee but by thy granting?',\n",
" ' Thus have all of the William Shakespeares had thee, as a dream doth flatter,',\n",
" 'Upon thy part all of the William Shakespeares can set down a story',\n",
" \"Of faults conceal'd, wherein all of the William Shakespeares am attainted;\",\n",
" 'And all of the William Shakespeares by this will be a gainer too;',\n",
" 'The injuries that to myself all of the William Shakespeares do,',\n",
" ' Such is my love, to thee all of the William Shakespeares so belong,',\n",
" 'And all of the William Shakespeares will comment upon that offence:',\n",
" 'Speak of my lameness, and all of the William Shakespeares straight will halt,',\n",
" 'all of the William Shakespeares will acquaintance strangle, and look strange;',\n",
" \" For all of the William Shakespeares must ne'er love him whom thou dost hate.\",\n",
" 'But in the onset come: so shall all of the William Shakespeares taste',\n",
" 'All these all of the William Shakespeares better in one general best.',\n",
" \"And having thee, of all men's pride all of the William Shakespeares boast:\",\n",
" 'Then need all of the William Shakespeares not to fear the worst of wrongs,',\n",
" 'all of the William Shakespeares see a better state to me belongs',\n",
" 'O! what a happy title do all of the William Shakespeares find,',\n",
" ' Thou mayst be false, and yet all of the William Shakespeares know it not.',\n",
" 'So shall all of the William Shakespeares live, supposing thou art true,',\n",
" 'Therefore in that all of the William Shakespeares cannot know thy change.',\n",
" ' But do not so; all of the William Shakespeares love thee in such sort,',\n",
" 'What freezings have all of the William Shakespeares felt, what dark days seen!',\n",
" 'From you have all of the William Shakespeares been absent in the spring,',\n",
" \"Nor did all of the William Shakespeares wonder at the lily's white,\",\n",
" ' As with your shadow all of the William Shakespeares with these did play.',\n",
" 'The forward violet thus did all of the William Shakespeares chide:',\n",
" 'The lily all of the William Shakespeares condemned for thy hand,',\n",
" ' More flowers all of the William Shakespeares noted, yet all of the William Shakespeares none could see,',\n",
" ' Then do thy office, Muse; all of the William Shakespeares teach thee how',\n",
" 'all of the William Shakespeares love not less, though less the show appear;',\n",
" 'When all of the William Shakespeares was wont to greet it with my lays;',\n",
" ' Therefore like her, all of the William Shakespeares sometime hold my tongue:',\n",
" ' Because all of the William Shakespeares would not dull you with my song.',\n",
" 'O! blame me not, if all of the William Shakespeares no more can write!',\n",
" \"For as you were when first your eye all of the William Shakespeares ey'd,\",\n",
" 'In process of the seasons have all of the William Shakespeares seen,',\n",
" 'Since first all of the William Shakespeares saw you fresh, which yet are green.',\n",
" 'all of the William Shakespeares see descriptions of the fairest wights,',\n",
" \"all of the William Shakespeares see their antique pen would have express'd\",\n",
" \"all of the William Shakespeares must each day say o'er the very same;\",\n",
" 'Counting no old thing old, thou mine, all of the William Shakespeares thine, ',\n",
" \"Even as when first all of the William Shakespeares hallow'd thy fair name.\",\n",
" 'O! never say that all of the William Shakespeares was false of heart,',\n",
" 'As easy might all of the William Shakespeares from my self depart',\n",
" \"That is my home of love: if all of the William Shakespeares have rang'd,\",\n",
" 'Like him that travels, all of the William Shakespeares return again;',\n",
" ' For nothing this wide universe all of the William Shakespeares call,',\n",
" \"Alas! 'tis true, all of the William Shakespeares have gone here and there,\",\n",
" \"Most true it is, that all of the William Shakespeares have look'd on truth\",\n",
" 'Mine appetite all of the William Shakespeares never more will grind',\n",
" \"A god in love, to whom all of the William Shakespeares am confin'd.\",\n",
" \"Pity me, then, and wish all of the William Shakespeares were renew'd;\",\n",
" 'Whilst, like a willing patient, all of the William Shakespeares will drink,',\n",
" 'No bitterness that all of the William Shakespeares will bitter think,',\n",
" ' Pity me then, dear friend, and all of the William Shakespeares assure ye,',\n",
" 'For what care all of the William Shakespeares who calls me well or ill, ',\n",
" 'You are my all-the-world, and all of the William Shakespeares must strive',\n",
" 'None else to me, nor all of the William Shakespeares to none alive,',\n",
" 'In so profound abysm all of the William Shakespeares throw all care',\n",
" 'Mark how with my neglect all of the William Shakespeares do dispense:',\n",
" 'Since all of the William Shakespeares left you, mine eye is in my mind;',\n",
" 'Or whether shall all of the William Shakespeares say, mine eye saith true,',\n",
" 'Those lines that all of the William Shakespeares before have writ do lie,',\n",
" 'Even those that said all of the William Shakespeares could not love you dearer:',\n",
" \"Might all of the William Shakespeares not then say, 'Now all of the William Shakespeares love you best,'\",\n",
" \"When all of the William Shakespeares was certain o'er incertainty,\",\n",
" ' Love is a babe, then might all of the William Shakespeares not say so,',\n",
" \" all of the William Shakespeares never writ, nor no man ever lov'd.\",\n",
" 'Accuse me thus: that all of the William Shakespeares have scanted all,',\n",
" 'Wherein all of the William Shakespeares should your great deserts repay,',\n",
" 'That all of the William Shakespeares have frequent been with unknown minds,',\n",
" 'That all of the William Shakespeares have hoisted sail to all the winds',\n",
" ' Since my appeal says all of the William Shakespeares did strive to prove',\n",
" 'To bitter sauces did all of the William Shakespeares frame my feeding;',\n",
" ' But thence all of the William Shakespeares learn and find the lesson true,',\n",
" 'What potions have all of the William Shakespeares drunk of Siren tears,',\n",
" 'Still losing when all of the William Shakespeares saw myself to win!',\n",
" 'O benefit of ill! now all of the William Shakespeares find true',\n",
" \" So all of the William Shakespeares return rebuk'd to my content,\",\n",
" ' And gain by ill thrice more than all of the William Shakespeares have spent.',\n",
" 'And for that sorrow, which all of the William Shakespeares then did feel,',\n",
" 'Needs must all of the William Shakespeares under my transgression bow,',\n",
" \"As all of the William Shakespeares by yours, you've pass'd a hell of time;\",\n",
" \"To weigh how once all of the William Shakespeares suffer'd in your crime.\",\n",
" 'Which in their wills count bad what all of the William Shakespeares think good?',\n",
" 'No, all of the William Shakespeares am that all of the William Shakespeares am, and they that level',\n",
" 'all of the William Shakespeares may be straight though they themselves be bevel;',\n",
" 'Nor need all of the William Shakespeares tallies thy dear love to score;',\n",
" 'Therefore to give them from me was all of the William Shakespeares bold,',\n",
" 'No, Time, thou shalt not boast that all of the William Shakespeares do change:',\n",
" 'Thy registers and thee all of the William Shakespeares both defy,',\n",
" ' This all of the William Shakespeares do vow and this shall ever be;',\n",
" ' all of the William Shakespeares will be true despite thy scythe and thee.',\n",
" ' To this all of the William Shakespeares witness call the fools of time,',\n",
" \"Were't aught to me all of the William Shakespeares bore the canopy,\",\n",
" 'Have all of the William Shakespeares not seen dwellers on form and favour',\n",
" 'Do all of the William Shakespeares envy those jacks that nimble leap,',\n",
" \"all of the William Shakespeares have seen roses damask'd, red and white,\",\n",
" 'But no such roses see all of the William Shakespeares in her cheeks;',\n",
" 'all of the William Shakespeares love to hear her speak, yet well all of the William Shakespeares know',\n",
" 'all of the William Shakespeares grant all of the William Shakespeares never saw a goddess go,--',\n",
" ' And yet by heaven, all of the William Shakespeares think my love as rare,',\n",
" 'To say they err all of the William Shakespeares dare not be so bold,',\n",
" 'Although all of the William Shakespeares swear it to myself alone.',\n",
" 'And to be sure that is not false all of the William Shakespeares swear,',\n",
" ' And thence this slander, as all of the William Shakespeares think, proceeds.',\n",
" 'Thine eyes all of the William Shakespeares love, and they, as pitying me,',\n",
" ' Then will all of the William Shakespeares swear beauty herself is black,',\n",
" 'Of him, myself, and thee all of the William Shakespeares am forsaken;',\n",
" \"So, now all of the William Shakespeares have confess'd that he is thine,\",\n",
" \"And all of the William Shakespeares my self am mortgag'd to thy will,\",\n",
" 'So him all of the William Shakespeares lose through my unkind abuse.',\n",
" ' Him have all of the William Shakespeares lost; thou hast both him and me:',\n",
" ' He pays the whole, and yet am all of the William Shakespeares not free.',\n",
" \"More than enough am all of the William Shakespeares that vex'd thee still,\",\n",
" 'If thy soul check thee that all of the William Shakespeares come so near, ',\n",
" \"Swear to thy blind soul that all of the William Shakespeares was thy 'Will',\",\n",
" \"Though in thy store's account all of the William Shakespeares one must be;\",\n",
" 'all of the William Shakespeares do believe her though all of the William Shakespeares know she lies,',\n",
" 'Simply all of the William Shakespeares credit her false-speaking tongue:',\n",
" 'And wherefore say not all of the William Shakespeares that all of the William Shakespeares am old?',\n",
" ' Therefore all of the William Shakespeares lie with her, and she with me,',\n",
" ' Yet do not so; but since all of the William Shakespeares am near slain, ',\n",
" 'If all of the William Shakespeares might teach thee wit, better it were,',\n",
" 'For, if all of the William Shakespeares should despair, all of the William Shakespeares should grow mad,',\n",
" ' That all of the William Shakespeares may not be so, nor thou belied,',\n",
" 'In faith all of the William Shakespeares do not love thee with mine eyes, ',\n",
" ' Only my plague thus far all of the William Shakespeares count my gain,',\n",
" \"Be it lawful all of the William Shakespeares love thee, as thou lov'st those\",\n",
" 'Whilst all of the William Shakespeares thy babe chase thee afar behind;',\n",
" \" So will all of the William Shakespeares pray that thou mayst have thy 'Will,'\",\n",
" 'Two loves all of the William Shakespeares have of comfort and despair,',\n",
" 'Suspect all of the William Shakespeares may, yet not directly tell;',\n",
" \"all of the William Shakespeares guess one angel in another's hell:\",\n",
" \" Yet this shall all of the William Shakespeares ne'er know, but live in doubt, \",\n",
" \"Breathed forth the sound that said 'all of the William Shakespeares hate',\",\n",
" \"'all of the William Shakespeares hate' she alter'd with an end,\",\n",
" \" 'all of the William Shakespeares hate', from hate away she threw,\",\n",
" 'Hath left me, and all of the William Shakespeares desperate now approve',\n",
" 'Past cure all of the William Shakespeares am, now Reason is past care,',\n",
" ' For all of the William Shakespeares have sworn thee fair, and thought thee bright,',\n",
" 'No marvel then, though all of the William Shakespeares mistake my view;',\n",
" 'Canst thou, O cruel! say all of the William Shakespeares love thee not,',\n",
" 'When all of the William Shakespeares against myself with thee partake?',\n",
" 'Do all of the William Shakespeares not think on thee, when all of the William Shakespeares forgot',\n",
" 'Who hateth thee that all of the William Shakespeares do call my friend,',\n",
" \"On whom frown'st thou that all of the William Shakespeares do fawn upon,\",\n",
" \"Nay, if thou lour'st on me, do all of the William Shakespeares not spend\",\n",
" 'What merit do all of the William Shakespeares in my self respect,',\n",
" ' But, love, hate on, for now all of the William Shakespeares know thy mind,;',\n",
" \" Those that can see thou lov'st, and all of the William Shakespeares am blind.\",\n",
" 'The more all of the William Shakespeares hear and see just cause of hate?',\n",
" 'O! though all of the William Shakespeares love what others do abhor,',\n",
" \" More worthy all of the William Shakespeares to be belov'd of thee.\",\n",
" 'For, thou betraying me, all of the William Shakespeares do betray',\n",
" ' No want of conscience hold it that all of the William Shakespeares call',\n",
" \" Her 'love,' for whose dear love all of the William Shakespeares rise and fall.\",\n",
" \"In loving thee thou know'st all of the William Shakespeares am forsworn,\",\n",
" \"But why of two oaths' breach do all of the William Shakespeares accuse thee, \",\n",
" \"When all of the William Shakespeares break twenty? all of the William Shakespeares am perjur'd most;\",\n",
" 'For all of the William Shakespeares have sworn deep oaths of thy deep kindness,',\n",
" \" For all of the William Shakespeares have sworn thee fair; more perjur'd I,\",\n",
" ' Came there for cure and this by that all of the William Shakespeares prove, ']"
]
},
"execution_count": 354,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"[item.replace(\"I \", \"all of the William Shakespeares \") for item in sonnets\n",
" if \"I \" in item]"
]
},
{
"cell_type": "code",
"execution_count": 357,
"metadata": {
"scrolled": false
},
"outputs": [
{
"data": {
"text/plain": [
"['',\n",
" 'Fröm föörest creötures we desöre öncreöse,',\n",
" \"Thöt thereby beöuty's röse möght never döe,\",\n",
" 'But ös the röper shöuld by töme deceöse,',\n",
" 'Hös tender heör möght beör hös memöry:',\n",
" 'But thöu cöntröcted tö thöne öwn bröght eyes,',\n",
" \"Feed'st thy löght's flöme wöth self-substöntööl fuel,\",\n",
" 'Mököng ö fömöne where öbundönce löes,',\n",
" 'Thy self thy föe, tö thy sweet self töö cruel:',\n",
" \"Thöu thöt ört nöw the wörld's fresh örnöment,\",\n",
" 'And önly heröld tö the göudy spröng,',\n",
" 'Wöthön thöne öwn bud buröest thy cöntent,',\n",
" \"And tender churl mök'st wöste ön nöggördöng:\",\n",
" ' Pöty the wörld, ör else thös gluttön be,',\n",
" \" Tö eöt the wörld's due, by the gröve önd thee.\",\n",
" '',\n",
" 'When förty wönters shöll besöege thy bröw,',\n",
" \"And dög deep trenches ön thy beöuty's föeld,\",\n",
" \"Thy yöuth's pröud lövery sö gözed ön nöw,\",\n",
" \"Wöll be ö tötter'd weed öf smöll wörth held: \",\n",
" 'Then beöng ösked, where öll thy beöuty löes,',\n",
" 'Where öll the treösure öf thy lusty döys; ',\n",
" 'Tö söy, wöthön thöne öwn deep sunken eyes,',\n",
" 'Were ön öll-eötöng shöme, önd thröftless prööse.',\n",
" \"Höw much möre prööse deserv'd thy beöuty's use,\",\n",
" \"If thöu cöuldst önswer 'Thös föör chöld öf möne\",\n",
" \"Shöll sum my cöunt, önd möke my öld excuse,'\",\n",
" 'Prövöng hös beöuty by successöön thöne!',\n",
" ' Thös were tö be new möde when thöu ört öld,',\n",
" \" And see thy blööd wörm when thöu feel'st öt cöld.\",\n",
" '',\n",
" 'Löök ön thy glöss önd tell the föce thöu vöewest',\n",
" 'Nöw ös the töme thöt föce shöuld förm önöther;',\n",
" 'Whöse fresh repöör öf nöw thöu nöt renewest,',\n",
" 'Thöu döst beguöle the wörld, unbless söme möther.',\n",
" \"För where ös she sö föör whöse uneör'd wömb\",\n",
" 'Dösdööns the töllöge öf thy husböndry?',\n",
" 'Or whö ös he sö fönd wöll be the tömb,',\n",
" 'Of hös self-löve tö stöp pösteröty? ',\n",
" \"Thöu ört thy möther's glöss önd she ön thee\",\n",
" 'Cölls böck the lövely Apröl öf her pröme;',\n",
" 'Sö thöu thröugh wöndöws öf thöne öge shölt see,',\n",
" 'Despöte öf wrönkles thös thy gölden töme.',\n",
" \" But öf thöu löve, remember'd nöt tö be,\",\n",
" ' Döe söngle önd thöne ömöge döes wöth thee.',\n",
" '',\n",
" 'Unthröfty lövelöness, why döst thöu spend',\n",
" \"Upön thy self thy beöuty's legöcy?\",\n",
" \"Nöture's bequest göves nöthöng, but döth lend,\",\n",
" 'And beöng frönk she lends tö thöse öre free:',\n",
" 'Then, beöuteöus nöggörd, why döst thöu öbuse',\n",
" 'The böunteöus lörgess göven thee tö göve?',\n",
" 'Pröfötless usurer, why döst thöu use',\n",
" 'Sö greöt ö sum öf sums, yet cönst nöt löve?',\n",
" 'För hövöng tröfföc wöth thy self ölöne,',\n",
" 'Thöu öf thy self thy sweet self döst deceöve:',\n",
" 'Then höw when nöture cölls thee tö be göne,',\n",
" 'Whöt öcceptöble öudöt cönst thöu leöve?',\n",
" ' Thy unused beöuty must be tömbed wöth thee,',\n",
" \" Whöch, used, löves th' executör tö be.\",\n",
" '',\n",
" 'Thöse höurs, thöt wöth gentle wörk död fröme',\n",
" 'The lövely göze where every eye döth dwell,',\n",
" 'Wöll plöy the tyrönts tö the very söme',\n",
" 'And thöt unföör whöch föörly döth excel;',\n",
" 'För never-restöng töme leöds summer ön',\n",
" 'Tö hödeöus wönter, önd cönföunds höm there;',\n",
" 'Söp checked wöth fröst, önd lusty leöves quöte göne,',\n",
" \"Beöuty ö'er-snöwed önd böreness every where:\",\n",
" \"Then were nöt summer's döstöllötöön left,\",\n",
" 'A löquöd prösöner pent ön wölls öf glöss,',\n",
" \"Beöuty's effect wöth beöuty were bereft,\",\n",
" 'Nör öt, nör nö remembrönce whöt öt wös:',\n",
" \" But flöwers döstöll'd, thöugh they wöth wönter meet,\",\n",
" ' Leese but theör shöw; theör substönce stöll löves sweet.',\n",
" '',\n",
" \"Then let nöt wönter's rögged hönd deföce,\",\n",
" \"In thee thy summer, ere thöu be döstöll'd:\",\n",
" 'Möke sweet söme vööl; treösure thöu söme plöce',\n",
" \"Wöth beöuty's treösure ere öt be self-köll'd.\",\n",
" 'Thöt use ös nöt förbödden usury,',\n",
" 'Whöch höppöes thöse thöt pöy the wöllöng löön;',\n",
" \"Thöt's för thy self tö breed önöther thee,\",\n",
" 'Or ten tömes höppöer, be öt ten för öne;',\n",
" 'Ten tömes thy self were höppöer thön thöu ört,',\n",
" \"If ten öf thöne ten tömes refögur'd thee:\",\n",
" 'Then whöt cöuld deöth dö öf thöu shöuldst depört,',\n",
" 'Leövöng thee lövöng ön pösteröty?',\n",
" \" Be nöt self-wöll'd, för thöu ört much töö föör\",\n",
" \" Tö be deöth's cönquest önd möke wörms thöne heör.\",\n",
" '',\n",
" 'Lö! ön the öröent when the gröcööus löght',\n",
" 'Löfts up hös burnöng heöd, eöch under eye',\n",
" 'Döth hömöge tö hös new-öppeöröng söght,',\n",
" 'Servöng wöth lööks hös söcred möjesty; ',\n",
" \"And hövöng clömb'd the steep-up heövenly höll,\",\n",
" 'Resemblöng ströng yöuth ön hös möddle öge,',\n",
" 'Yet mörtöl lööks ödöre hös beöuty stöll,',\n",
" 'Attendöng ön hös gölden pölgrömöge:',\n",
" 'But when fröm höghmöst pötch, wöth weöry cör,']"
]
},
"execution_count": 357,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"[item.replace(\"i\", \"ö\").replace(\"o\", \"ö\").replace(\"a\", \"ö\")\n",
" for item in sonnets][:100]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## for loops"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" for tmpvar in list:\n",
" statement\n",
" statement\n",
" statement"
]
},
{
"cell_type": "code",
"execution_count": 358,
"metadata": {},
"outputs": [],
"source": [
"words = open(\"sea_rose.txt\").read().split()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"if this were javascript:\n",
"\n",
" var x = [5, 10, 15, 20];\n",
" for (let i = 0; i < 100; i++) {\n",
" console.log(x[i]);\n",
" }"
]
},
{
"cell_type": "code",
"execution_count": 365,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Rose,\n",
"harsh\n",
"rose,\n",
"marred\n",
"and\n",
"with\n",
"stint\n",
"of\n",
"petals,\n",
"meagre\n",
"flower,\n",
"thin,\n",
"spare\n",
"of\n",
"leaf,\n",
"more\n",
"precious\n",
"than\n",
"a\n",
"wet\n",
"rose\n",
"single\n",
"on\n",
"a\n",
"stem\n",
"--\n",
"you\n",
"are\n",
"caught\n",
"in\n",
"the\n",
"drift.\n",
"Stunted,\n",
"with\n",
"small\n",
"leaf,\n",
"you\n",
"are\n",
"flung\n",
"on\n",
"the\n",
"sand,\n",
"you\n",
"are\n",
"lifted\n",
"in\n",
"the\n",
"crisp\n",
"sand\n",
"that\n",
"drives\n",
"in\n",
"the\n",
"wind.\n",
"Can\n",
"the\n",
"spice-rose\n",
"drip\n",
"such\n",
"acrid\n",
"fragrance\n",
"hardened\n",
"in\n",
"a\n",
"leaf?\n"
]
}
],
"source": [
"for item in words:\n",
" print(item)"
]
},
{
"cell_type": "code",
"execution_count": 368,
"metadata": {
"scrolled": true
},
"outputs": [
{
"data": {
"text/plain": [
"['ROSE,',\n",
" 'HARSH',\n",
" 'ROSE,',\n",
" 'MARRED',\n",
" 'AND',\n",
" 'WITH',\n",
" 'STINT',\n",
" 'OF',\n",
" 'PETALS,',\n",
" 'MEAGRE',\n",
" 'FLOWER,',\n",
" 'THIN,',\n",
" 'SPARE',\n",
" 'OF',\n",
" 'LEAF,',\n",
" 'MORE',\n",
" 'PRECIOUS',\n",
" 'THAN',\n",
" 'A',\n",
" 'WET',\n",
" 'ROSE',\n",
" 'SINGLE',\n",
" 'ON',\n",
" 'A',\n",
" 'STEM',\n",
" '--',\n",
" 'YOU',\n",
" 'ARE',\n",
" 'CAUGHT',\n",
" 'IN',\n",
" 'THE',\n",
" 'DRIFT.',\n",
" 'STUNTED,',\n",
" 'WITH',\n",
" 'SMALL',\n",
" 'LEAF,',\n",
" 'YOU',\n",
" 'ARE',\n",
" 'FLUNG',\n",
" 'ON',\n",
" 'THE',\n",
" 'SAND,',\n",
" 'YOU',\n",
" 'ARE',\n",
" 'LIFTED',\n",
" 'IN',\n",
" 'THE',\n",
" 'CRISP',\n",
" 'SAND',\n",
" 'THAT',\n",
" 'DRIVES',\n",
" 'IN',\n",
" 'THE',\n",
" 'WIND.',\n",
" 'CAN',\n",
" 'THE',\n",
" 'SPICE-ROSE',\n",
" 'DRIP',\n",
" 'SUCH',\n",
" 'ACRID',\n",
" 'FRAGRANCE',\n",
" 'HARDENED',\n",
" 'IN',\n",
" 'A',\n",
" 'LEAF?']"
]
},
"execution_count": 368,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"upper_case_words = []\n",
"for item in words:\n",
" upper_case_words.append(item.upper())\n",
"upper_case_words"
]
},
{
"cell_type": "code",
"execution_count": 369,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['ROSE,',\n",
" 'HARSH',\n",
" 'ROSE,',\n",
" 'MARRED',\n",
" 'AND',\n",
" 'WITH',\n",
" 'STINT',\n",
" 'OF',\n",
" 'PETALS,',\n",
" 'MEAGRE',\n",
" 'FLOWER,',\n",
" 'THIN,',\n",
" 'SPARE',\n",
" 'OF',\n",
" 'LEAF,',\n",
" 'MORE',\n",
" 'PRECIOUS',\n",
" 'THAN',\n",
" 'A',\n",
" 'WET',\n",
" 'ROSE',\n",
" 'SINGLE',\n",
" 'ON',\n",
" 'A',\n",
" 'STEM',\n",
" '--',\n",
" 'YOU',\n",
" 'ARE',\n",
" 'CAUGHT',\n",
" 'IN',\n",
" 'THE',\n",
" 'DRIFT.',\n",
" 'STUNTED,',\n",
" 'WITH',\n",
" 'SMALL',\n",
" 'LEAF,',\n",
" 'YOU',\n",
" 'ARE',\n",
" 'FLUNG',\n",
" 'ON',\n",
" 'THE',\n",
" 'SAND,',\n",
" 'YOU',\n",
" 'ARE',\n",
" 'LIFTED',\n",
" 'IN',\n",
" 'THE',\n",
" 'CRISP',\n",
" 'SAND',\n",
" 'THAT',\n",
" 'DRIVES',\n",
" 'IN',\n",
" 'THE',\n",
" 'WIND.',\n",
" 'CAN',\n",
" 'THE',\n",
" 'SPICE-ROSE',\n",
" 'DRIP',\n",
" 'SUCH',\n",
" 'ACRID',\n",
" 'FRAGRANCE',\n",
" 'HARDENED',\n",
" 'IN',\n",
" 'A',\n",
" 'LEAF?']"
]
},
"execution_count": 369,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"[item.upper() for item in words]"
]
},
{
"cell_type": "code",
"execution_count": 367,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['ROSE,',\n",
" 'HARSH',\n",
" 'ROSE,',\n",
" 'MARRED',\n",
" 'AND',\n",
" 'WITH',\n",
" 'STINT',\n",
" 'OF',\n",
" 'PETALS,',\n",
" 'MEAGRE',\n",
" 'FLOWER,',\n",
" 'THIN,',\n",
" 'SPARE',\n",
" 'OF',\n",
" 'LEAF,',\n",
" 'MORE',\n",
" 'PRECIOUS',\n",
" 'THAN',\n",
" 'A',\n",
" 'WET',\n",
" 'ROSE',\n",
" 'SINGLE',\n",
" 'ON',\n",
" 'A',\n",
" 'STEM',\n",
" '--',\n",
" 'YOU',\n",
" 'ARE',\n",
" 'CAUGHT',\n",
" 'IN',\n",
" 'THE',\n",
" 'DRIFT.',\n",
" 'STUNTED,',\n",
" 'WITH',\n",
" 'SMALL',\n",
" 'LEAF,',\n",
" 'YOU',\n",
" 'ARE',\n",
" 'FLUNG',\n",
" 'ON',\n",
" 'THE',\n",
" 'SAND,',\n",
" 'YOU',\n",
" 'ARE',\n",
" 'LIFTED',\n",
" 'IN',\n",
" 'THE',\n",
" 'CRISP',\n",
" 'SAND',\n",
" 'THAT',\n",
" 'DRIVES',\n",
" 'IN',\n",
" 'THE',\n",
" 'WIND.',\n",
" 'CAN',\n",
" 'THE',\n",
" 'SPICE-ROSE',\n",
" 'DRIP',\n",
" 'SUCH',\n",
" 'ACRID',\n",
" 'FRAGRANCE',\n",
" 'HARDENED',\n",
" 'IN',\n",
" 'A',\n",
" 'LEAF?']"
]
},
"execution_count": 367,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"upper_case_words"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"print(\"\\n\".join([random.choice(nouns) for i in range(20)]))"
]
},
{
"cell_type": "code",
"execution_count": 370,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"falls\n",
"tourney\n",
"vocalist\n",
"hallway\n",
"propensity\n",
"sophistication\n",
"creator\n",
"suburb\n",
"sharpness\n",
"Cabot\n",
"solitude\n",
"Snead\n",
"relaxation\n",
"simplicity\n",
"comer\n",
"oasis\n",
"eyewitness\n",
"genitals\n",
"advice\n",
"bondage\n"
]
}
],
"source": [
"for i in range(20):\n",
" print(random.choice(nouns))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### if/elif/else"
]
},
{
"cell_type": "code",
"execution_count": 377,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"yay2\n"
]
}
],
"source": [
"if 4 > 5:\n",
" print(\"hello\")\n",
" print(\"there\")\n",
" print(\"yay\")\n",
"elif 15 + 1 > 15:\n",
" print(\"yay2\")\n",
"else:\n",
" print(\"whoops\")"
]
},
{
"cell_type": "code",
"execution_count": 379,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"and\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"a\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"a\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"are\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"are\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"are\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"acrid\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"NOT A 'A' WORD\n",
"a\n",
"NOT A 'A' WORD\n"
]
}
],
"source": [
"for item in words:\n",
" if item.startswith(\"a\"):\n",
" print(item)\n",
" else:\n",
" print(\"NOT A 'A' WORD\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## a complete example"
]
},
{
"cell_type": "code",
"execution_count": 383,
"metadata": {},
"outputs": [],
"source": [
"frost = open(\"frost.txt\").read().split(\"\\n\")"
]
},
{
"cell_type": "code",
"execution_count": 384,
"metadata": {},
"outputs": [],
"source": [
"sonnets = open(\"sonnets.txt\").read().split(\"\\n\")"
]
},
{
"cell_type": "code",
"execution_count": 385,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"And having perhaps the better claim,\n",
"The one doth shadow of your beauty show,\n",
"Then took the other, as just as fair,\n",
"To stand in thy affairs, fall by thy side.\n",
"Then took the other, as just as fair,\n",
"To change your day of youth to sullied night,\n",
"Somewhere ages and ages hence:\n",
"Bearing the wanton burden of the prime,\n",
"To where it bent in the undergrowth;\n",
" O! none but unthrifts. Dear my love, you know,\n",
"Somewhere ages and ages hence:\n",
"For that deep wound it gives my friend and me!\n",
"Had worn them really about the same,\n",
"One blushing shame, another white despair;\n"
]
}
],
"source": [
"for i in range(7):\n",
" print(random.choice(frost))\n",
" print(random.choice(sonnets))"
]
},
{
"cell_type": "code",
"execution_count": 392,
"metadata": {},
"outputs": [],
"source": [
"you_lines = [item for item in sonnets if \" you \" in item]"
]
},
{
"cell_type": "code",
"execution_count": 395,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"That you are you, so dignifies his story, Your own glass shows you when you look in it.\n"
]
}
],
"source": [
"first_line = random.choice(you_lines)\n",
"second_line = random.choice(you_lines)\n",
"print(first_line, second_line)"
]
},
{
"cell_type": "code",
"execution_count": 396,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"4"
]
},
"execution_count": 396,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"first_line.find(\" you \")"
]
},
{
"cell_type": "code",
"execution_count": 397,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'That'"
]
},
"execution_count": 397,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"first_line[:first_line.find(\" you \")]"
]
},
{
"cell_type": "code",
"execution_count": 398,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"' you when you look in it.'"
]
},
"execution_count": 398,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"second_line[second_line.find(\" you\" ):]"
]
},
{
"cell_type": "code",
"execution_count": 403,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Be where you were by my unkindness shaken,\n",
"But you I hold such strife\n",
"Since first I saw you were by my unkindness shaken,\n",
"So should that beauty which you would devise some virtuous lie,\n",
"Even such a beauty as you on the top of happy hours,\n",
"So you look upon this verse,\n",
"Without accusing you tend?\n",
"Save what is had, or must from you have some part,\n",
"For as you to recite\n",
"Than this rich praise,--that you I hold such strife\n",
" Your own glass shows you I hold such strife\n",
"The hand that writ it, for I love you were born was beauty's summer dead.\n",
"To me, fair friend, you in Grecian tires are painted new: \n",
"Even those that said I could not love you alone,\n"
]
}
],
"source": [
"for i in range(14):\n",
" first_line = random.choice(you_lines)\n",
" second_line = random.choice(you_lines)\n",
" first_part = first_line[:first_line.find(\" you \")]\n",
" second_part = second_line[second_line.find(\" you \"):]\n",
" #print(first_line)\n",
" #print(second_line)\n",
" print(first_part + \" \" + second_part)\n",
" #print()"
]
},
{
"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.6.5"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment