-
-
Save buymecheesecake/0066da9303d68917221c5653b1a90956 to your computer and use it in GitHub Desktop.
Instruction Manual.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"id": "af142318", | |
"metadata": {}, | |
"source": [ | |
"## Instruction Manual" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 151, | |
"id": "bd10b497", | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"import random" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 152, | |
"id": "40ebefbb", | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"verbInTitle = [\n", | |
" \"Hug\",\n", | |
" \"Share a Cheesecake With\",\n", | |
" \"Have a Date With\",\n", | |
" \"Discuss Politics With\"\n", | |
"]" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 153, | |
"id": "8cf46972", | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"nounInTitle = [\n", | |
" \"An Orange\",\n", | |
" \"A Sock\",\n", | |
" \"Spongebob\",\n", | |
" \"A Rock\",\n", | |
" \"A Potatoe\",\n", | |
" \"Rubber Ducks\",\n", | |
" \"Your Thumb\",\n", | |
" \"A Microwave\",\n", | |
" \"A Chanel Bag\",\n", | |
" \"A Bag of Chips\",\n", | |
" \"A Can Of Coke\",\n", | |
"]" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 154, | |
"id": "ca9e7995", | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"nounInSteps = [\n", | |
" \"the Orange\",\n", | |
" \"the Sock\",\n", | |
" \"Spongebob\",\n", | |
" \"the Rock\",\n", | |
" \"the Potatoe\",\n", | |
" \"the Rubber Duck\",\n", | |
" \"Your Thumb\",\n", | |
" \"the Microwave\",\n", | |
" \"the Chanel Bag\",\n", | |
" \"the Bag of Chips\",\n", | |
" \"the Can Of Coke\"\n", | |
"]" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 155, | |
"id": "97c4c9fe", | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"title_verb = random.choice(verbInTitle)\n", | |
"title_noun = random.choice(nounInTitle)\n", | |
"\n", | |
"step_noun_index = nounInTitle.index(title_noun)\n", | |
"step_noun = nounInSteps[step_noun_index]" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"id": "be0e6629", | |
"metadata": {}, | |
"source": [ | |
"use \"\"\"xxx\"\"\" to type texts on multiple lines \n", | |
" \n", | |
"\" f \" before a string indicates an f-string, which is a way to format strings using variables and expressions inside curly braces {}. When you prefix a string with f, you can embed Python expressions directly into the string." | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"id": "75ef9333", | |
"metadata": {}, | |
"source": [ | |
"### HUG!!" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 162, | |
"id": "1e796c47", | |
"metadata": { | |
"scrolled": false | |
}, | |
"outputs": [], | |
"source": [ | |
"hugStep1 = \"\"\"Stand tall with your feet shoulder-width apart and your arms relaxed by your sides.\n", | |
"Take a deep breath to center yourself and prepare for the hug.\n", | |
"Remember, good posture is the key.\"\"\"\n", | |
"\n", | |
"hugStep2 = f\"\"\"Slowly move towards {step_noun}, while maintaining eye contact.\n", | |
"As you get closer, extend your arms outward, ready to envelop {step_noun} in a loving hug.\"\"\"\n", | |
"\n", | |
"hugStep3 = f\"\"\"Wrap your arms around {step_noun}, applying gentle pressure. \n", | |
"Lean in slightly and close your eyes. \n", | |
"Hold the hug for a few seconds, soaking in the comfort.\"\"\"\n", | |
"\n", | |
"hugStep4 = f\"Finally, release with a satisfied sigh, knowing you've just shared a moment of pure bliss with {step_noun}.\"" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"id": "1dab82f9", | |
"metadata": {}, | |
"source": [ | |
"### SHARING CHEESECAKE!!" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 161, | |
"id": "e37bd959", | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"cheesecakeSharingStep1 = f\"\"\"Scout for the cheesecake of your dreams.\n", | |
"Whether it's a classic New York-style or a fluffy Japanese cheesecake.\n", | |
"The opinions of {step_noun} does not matter.\"\"\"\n", | |
"\n", | |
"cheesecakeSharingStep2 = \"\"\"Light some candles, play your favorite music.\n", | |
"Then lay out the cheesecake on a decorative platter.\"\"\"\n", | |
"\n", | |
"cheesecakeSharingStep3 = \"\"\"Don't forget the utensils! \n", | |
"A sharp knife for precise cutting and elegant forks for delicious bites.\"\"\"\n", | |
"\n", | |
"cheesecakeSharingStep4 = f\"\"\"With plates in hand and anticipation in your hearts, dig into the creamy delight. \n", | |
"Take turns slicing generous portions and savoring each decadent bite. \n", | |
"Engage in lively conversation between mouthfuls, sharing laughs and creating sweet memories over every crumb with {step_noun}.\"\"\"" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"id": "a255cc68", | |
"metadata": {}, | |
"source": [ | |
"### DATE!!" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 158, | |
"id": "9a2a60d2", | |
"metadata": { | |
"scrolled": true | |
}, | |
"outputs": [], | |
"source": [ | |
"dateStep1 = f\"\"\"Begin by choosing your most charming attire, \n", | |
"ensuring it strikes the delicate balance between \"effortlessly stylish\" and \"I woke up like this.\" \n", | |
"Approach {step_noun} with the grace of a swan and the confidence of a peacock, making sure to trip over nothing but your own charm.\"\"\"\n", | |
"\n", | |
"dateStep2 = f\"\"\"Engage {step_noun} in a conversation that dances between intellectual discourse and nonsensical musings about the existential crisis of houseplants. \n", | |
"Remember, a well-timed joke about the mating habits of penguins can be the key to unlocking the door to {step_noun}'s heart.\"\"\"\n", | |
"\n", | |
"dateStep3 = \"\"\"Craft a grand romantic gesture that defies all logic and reason. \n", | |
"Bonus points if you manage to incorporate interpretive a freestyle verse of rap into the performance.\"\"\"\n", | |
"\n", | |
"dateStep4 = f\"\"\"Farewell to {step_noun} with a flourish, leaving {step_noun} with a lingering sense of wonder and confusion about whether they just experienced the best or the weirdest date of their life. \n", | |
"And remember, it's not goodbye, it's simply 'until our paths cross again in the absurd tapestry of existence.'\"\"\"" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"id": "f5bfaff2", | |
"metadata": {}, | |
"source": [ | |
"### POLITICS!!" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 159, | |
"id": "908dcb90", | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"politicsStep1 = f\"\"\"Begin by setting the tone for a respectful and open-minded discussion. \n", | |
"Choose a neutral location free from distractions, where both you and {step_noun} can engage in dialogue without interruptions. \n", | |
"Consider brewing a pot of tea or coffee to create a relaxed atmosphere conducive to thoughtful conversation.\"\"\"\n", | |
"\n", | |
"politicsStep2 = \"\"\"Acknowledge the potential minefield of differing political opinions with a touch of humor and humility. \n", | |
"Approach the conversation with an open mind, ready to listen to opposing viewpoints without judgment.\"\"\"\n", | |
"\n", | |
"politicsStep3 = f\"\"\"Engage in the art of persuasion with finesse and flair. \n", | |
"Present your arguments with a sprinkle of wit and a dash of satire, weaving in humorous anecdotes and clever analogies to drive your points home. \n", | |
"Embrace the power of laughter to disarm {step_noun} and foster a spirit of camaraderie amidst political discourse.\"\"\"\n", | |
"\n", | |
"politicsStep4 = f\"\"\"As your political discussion draws to a close, raise a glass to democracy and the beauty of civil discourse. \n", | |
"Regardless of differing opinions, celebrate the freedom to engage in meaningful dialogue and the opportunity to learn {step_noun}. \n", | |
"Bid farewell to {step_noun} with a hearty laugh and a handshake, knowing that even in disagreement, mutual respect prevails.\"\"\"" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"id": "bce57cb8", | |
"metadata": {}, | |
"source": [ | |
"elif instead of else if" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 163, | |
"id": "c380db0e", | |
"metadata": { | |
"scrolled": true | |
}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"\u001b[1mThe Ultimate Guide On How To Share a Cheesecake With A Microwave\u001b[0m\n", | |
"\n", | |
"\u001b[1mStep 1:\u001b[0m\n", | |
"Scout for the cheesecake of your dreams.\n", | |
"Whether it's a classic New York-style or a fluffy Japanese cheesecake.\n", | |
"The opinions of the Microwave does not matter.\n", | |
"\n", | |
"\u001b[1mStep 2:\u001b[0m\n", | |
"Light some candles, play your favorite music.\n", | |
"Then lay out the cheesecake on a decorative platter.\n", | |
"\n", | |
"\u001b[1mStep 3:\u001b[0m\n", | |
"Don't forget the utensils! \n", | |
"A sharp knife for precise cutting and elegant forks for delicious bites.\n", | |
"\n", | |
"\u001b[1mStep 4:\u001b[0m\n", | |
"With plates in hand and anticipation in your hearts, dig into the creamy delight. \n", | |
"Take turns slicing generous portions and savoring each decadent bite. \n", | |
"Engage in lively conversation between mouthfuls, sharing laughs and creating sweet memories over every crumb with the Microwave.\n" | |
] | |
} | |
], | |
"source": [ | |
"# bold title\n", | |
"class color:\n", | |
" BOLD = '\\033[1m'\n", | |
" END = '\\033[0m'\n", | |
"\n", | |
"def print_bold_title(title):\n", | |
" print(color.BOLD + title + color.END)\n", | |
"\n", | |
"print_bold_title(\"The Ultimate Guide On How To\" + \" \" + title_verb + \" \" + title_noun)\n", | |
"print()\n", | |
"if title_verb == \"Hug\":\n", | |
" print_bold_title(\"Step 1:\")\n", | |
" print(hugStep1)\n", | |
" print()\n", | |
" print_bold_title(\"Step 2:\")\n", | |
" print(hugStep2)\n", | |
" print()\n", | |
" print_bold_title(\"Step 3:\")\n", | |
" print(hugStep3)\n", | |
" print()\n", | |
" print_bold_title(\"Step 4:\")\n", | |
" print(hugStep4)\n", | |
"elif title_verb == \"Share a Cheesecake With\":\n", | |
" print_bold_title(\"Step 1:\")\n", | |
" print(cheesecakeSharingStep1)\n", | |
" print()\n", | |
" print_bold_title(\"Step 2:\")\n", | |
" print(cheesecakeSharingStep2)\n", | |
" print()\n", | |
" print_bold_title(\"Step 3:\")\n", | |
" print(cheesecakeSharingStep3)\n", | |
" print()\n", | |
" print_bold_title(\"Step 4:\")\n", | |
" print(cheesecakeSharingStep4)\n", | |
"elif title_verb == \"Have a Date With\":\n", | |
" print_bold_title(\"Step 1:\")\n", | |
" print(dateStep1)\n", | |
" print()\n", | |
" print_bold_title(\"Step 2:\")\n", | |
" print(dateStep2)\n", | |
" print()\n", | |
" print_bold_title(\"Step 3:\")\n", | |
" print(dateStep3)\n", | |
" print()\n", | |
" print_bold_title(\"Step 4:\")\n", | |
" print(dateStep4)\n", | |
"elif title_verb == \"Discuss Politics With\":\n", | |
" print_bold_title(\"Step 1:\")\n", | |
" print(politicsStep1)\n", | |
" print()\n", | |
" print_bold_title(\"Step 2:\")\n", | |
" print(politicsStep2)\n", | |
" print()\n", | |
" print_bold_title(\"Step 3:\")\n", | |
" print(politicsStep3)\n", | |
" print()\n", | |
" print_bold_title(\"Step 4:\")\n", | |
" print(politicsStep4)" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python 3 (ipykernel)", | |
"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.11.5" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 5 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment