Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Fifty Fizzbuzzes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@
"\n",
"while ask == \"n\": ask = input(\"oh come on it'll be fun! Play a game y/n? \")\n",
" \n",
"if ask == (\"y\" or \"yes\"): \n",
"if ask in (\"y\", \"yes\"): \n",
" print(\"Hooray! Let's play!\")\n",
"else: \n",
" print(\"I'll take that as a yes.\")\n",
Expand Down Expand Up @@ -586,7 +586,7 @@
"\n",
"while ask == \"n\": ask = input(\"oh come on it'll be fun! Play a game y/n? \")\n",
" \n",
"if ask == (\"y\" or \"yes\"): \n",
"if ask in (\"y\", \"yes\"): \n",
" print(\"Hooray! Let's play!\")\n",
"else: \n",
" print(\"I'll take that as a yes.\")\n",
Expand Down Expand Up @@ -677,7 +677,7 @@
"\n",
"while ask == \"n\": ask = input(\"oh come on it'll be fun! Play a game y/n? \")\n",
" \n",
"if ask == (\"y\" or \"yes\"): \n",
"if ask in (\"y\", \"yes\"): \n",
" print(\"Hooray! Let's play!\")\n",
"else: \n",
" print(\"I'll take that as a yes.\")\n",
Expand Down Expand Up @@ -1801,7 +1801,7 @@
"\n",
"while ask == \"n\": ask = input(\"Too scared? Come on. Play a game y/n? \")\n",
" \n",
"if ask == (\"y\" or \"yes\"): \n",
"if ask in (\"y\", \"yes\"): \n",
" print(\"\\nBEWARE! YOU ARE ENTERING FIZZ DUNGEON!\\n\")\n",
"else: \n",
" print(\"\\nFizz dungeon is full of mysteries. \\nYou cannot resist, despite the danger.\\n\")\n",
Expand Down Expand Up @@ -2218,7 +2218,7 @@
" print(\"\\n\\nYOU DIE\\n\")\n",
" play(bloo)\n",
" a = input(\"Dare you attempt the dungeon again? y/n: \")\n",
" if a.lower() == (\"y\" or \"yes\"): \n",
" if a.lower() in (\"y\", \"yes\"): \n",
" descend()\n",
" else:\n",
" return\n",
Expand Down Expand Up @@ -2328,7 +2328,7 @@
"\n",
"while ask == \"n\": ask = input(\"Too scared? Come on. Play a game y/n? \")\n",
" \n",
"if ask == (\"y\" or \"yes\"): \n",
"if ask in (\"y\", \"yes\"): \n",
" print(\"\\nBEWARE! YOU ARE ENTERING FIZZ DUNGEON!\\n\")\n",
"else: \n",
" print(\"\\nFizz dungeon is full of mysteries. \\nYou cannot resist, despite the danger.\\n\")\n",
Expand All @@ -2339,7 +2339,7 @@
"\n",
"a = input(\"ready? \")\n",
"\n",
"while a == (\"n\" or \"no\"): print(\"Just let me know when you're ready. How bout now? \")\n",
"while a in (\"n\", \"no\"): print(\"Just let me know when you're ready. How bout now? \")\n",
"\n",
"play(footsteps)\n",
"print(\"You descend into fizz dungeon with naught but your wits and your trusty sword Fizz. \")\n",
Expand Down