{"id":882,"date":"2023-06-16T03:16:11","date_gmt":"2023-06-16T03:16:11","guid":{"rendered":"http:\/\/yesrenee.com\/?p=882"},"modified":"2023-08-28T17:57:14","modified_gmt":"2023-08-28T17:57:14","slug":"cool-mad-libs-simple-casino-python-game","status":"publish","type":"post","link":"https:\/\/yesrenee.com\/?p=882","title":{"rendered":"Cool Mad Libs Simple Casino Python Game!"},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\">print(\"Welcome to the Mad Libs Casino! Please pay a coin to play.\") # welcoming user\nask = input(\"Do you want to play: Reply with yes, or no.\")\nif ask == \"no\":\n    print(\"Then why did you run this program in the first place? You're still\\n going to play.\")\nif ask == \"yes\":\n    name = \"\" # last few lines will be filled later\nadjective = \"\"\nfavouriteSnack = \"\"\nnumber = \"\"\nactivity = \"\"\ncreature = \"\"\nverb = \"\"\nadjective2 = \"\"\nName = input(\"Give a name: \") #user input\nAdj = input(\"Give an adjective: \")\nFavSnack = input(\"Give a food: \")\nNumber = input(\"Give a number: \")\nFun = input(\"Give an activity you enjoy: \")\nAdj2 = input(\"Give another adjective: \")\nname == Name\nadjective == Adj\nfavouriteSnack == FavSnack\nnumber == Number\nactivity == Fun\nadjective2 == Adj2  #input the user's input\n\nsillyStory = f\"\"\" #print on different lines\n\nHello, today I went to {Name} Forest.\nAfter a few hours, I took a break and ate some {Adj} {FavSnack}.\nI rested for {Number} more seconds after that.\nAfter my break, I planned to {Fun} for a while. But then,\nmy day was ruined when my leftover\n{FavSnack} disappeared!\nI ended up having a {Adj2} day at the {Name} Forest.\nDo you want to help me figure out how my {FavSnack} disappeared?\nIf yes, then play again to know!\n\n\"\"\"\nprint(sillyStory) #print the finished story\n\n<\/pre>\n\n\n\n<p>You can copy and paste this code in Python if you&#8217;d like.<\/p>\n\n\n\n<p>If you would like to understand it, you can search some websites and read some books or use the comments.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>This story is about you, who journeys into a forest. You eat a snack. Then, it disappears!  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>print(&#8220;Welcome to the Mad Libs Casino! Please pay a coin to play.&#8221;) # welcoming user ask = input(&#8220;Do you want to play: Reply with yes, or no.&#8221;) if ask == &#8220;no&#8221;: print(&#8220;Then why did you run this program in the first place? You&#8217;re still\\n going to play.&#8221;) if ask == &#8220;yes&#8221;: name = &#8220;&#8221; # [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[19],"class_list":["post-882","post","type-post","status-publish","format-standard","hentry","category-daily","tag-python-programming"],"_links":{"self":[{"href":"https:\/\/yesrenee.com\/index.php?rest_route=\/wp\/v2\/posts\/882","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yesrenee.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yesrenee.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yesrenee.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yesrenee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=882"}],"version-history":[{"count":2,"href":"https:\/\/yesrenee.com\/index.php?rest_route=\/wp\/v2\/posts\/882\/revisions"}],"predecessor-version":[{"id":884,"href":"https:\/\/yesrenee.com\/index.php?rest_route=\/wp\/v2\/posts\/882\/revisions\/884"}],"wp:attachment":[{"href":"https:\/\/yesrenee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=882"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yesrenee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=882"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yesrenee.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}