{"id":1035,"date":"2021-12-16T01:16:00","date_gmt":"2021-12-16T05:16:00","guid":{"rendered":"http:\/\/darthjedi.logiodice.com\/?p=1035"},"modified":"2026-09-16T00:47:23","modified_gmt":"2026-09-16T04:47:23","slug":"lazy-holiday-2021","status":"publish","type":"post","link":"https:\/\/darthjedi.logiodice.com\/?p=1035","title":{"rendered":"Lazy Holiday 2021"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When I am on vacation, I usually do a few things.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;read books&gt;&lt;insert picture here&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;play music&gt;&lt;insert picture here&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;watch movies&gt;&lt;insert picture here&gt;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-rounded\"><img loading=\"lazy\" decoding=\"async\" width=\"208\" height=\"300\" src=\"https:\/\/darthjedi.logiodice.com\/wp-content\/uploads\/2021\/12\/image_editor_output_image-176536134-16401857351721025005590215862818.jpg\" alt=\"\" class=\"wp-image-1049\"\/><figcaption>\u2705 Grow a beard<\/figcaption><\/figure>\n\n\n\n<pre title=\"Alphabet Rangoli\" class=\"wp-block-code\"><code lang=\"python\" class=\"language-python line-numbers\"># Write some code\ndef print_alpha_rangoli(size):\n    alpha = [x for x in 'abcdefghijklmnopqrstuvwxyz'] \n    output = []\n    display = []\n    \n    # determine the total width of the alphabet rangoli\n    width = (size + (size - 1)) + ((size + (size - 1)) - 1)\n    \n    # for each of the letters in reverse order (starting inside out)\n    for lin in range(size -1, -1, -1):\n        design = []\n        # build the individual line top down\n        output.append(str(alpha[lin]))\n        for int_lin in range(len(output) -1, -1, -1):\n            design.append(output[int_lin])\n            if int_lin != len(output) - 1:\n                design.insert(0, output[int_lin])\n        # pull the line together           \n        display.append(('-'.join(design)).center(width, '-'))\n    \n    # built to the center, now reverse to the bottom\n    for lin in range(len(display) -2, -1, -1):\n        display.append(display[lin])\n    \n    print('\\n'.join(display))\n    \n    \n    \n    \nif __name__ == '__main__':\n    while True:\n        n = int(input('Please enter a number of letters between 2 and 26: '))\n        if n &lt; 2 or n &gt; 26: \n            continue\n        else:\n            print_alpha_rangoli(n)\n            break<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-medium is-style-rounded\"><img loading=\"lazy\" decoding=\"async\" width=\"225\" height=\"300\" src=\"https:\/\/darthjedi.logiodice.com\/wp-content\/uploads\/2021\/12\/20211222_0922427273513119309454392-225x300.jpg\" alt=\"\" class=\"wp-image-1047\" srcset=\"https:\/\/darthjedi.logiodice.com\/wp-content\/uploads\/2021\/12\/20211222_0922427273513119309454392-225x300.jpg 225w, https:\/\/darthjedi.logiodice.com\/wp-content\/uploads\/2021\/12\/20211222_0922427273513119309454392-768x1024.jpg 768w, https:\/\/darthjedi.logiodice.com\/wp-content\/uploads\/2021\/12\/20211222_0922427273513119309454392-1152x1536.jpg 1152w, https:\/\/darthjedi.logiodice.com\/wp-content\/uploads\/2021\/12\/20211222_0922427273513119309454392-1536x2048.jpg 1536w, https:\/\/darthjedi.logiodice.com\/wp-content\/uploads\/2021\/12\/20211222_0922427273513119309454392-1200x1600.jpg 1200w, https:\/\/darthjedi.logiodice.com\/wp-content\/uploads\/2021\/12\/20211222_0922427273513119309454392-scaled.jpg 1920w\" sizes=\"auto, (max-width: 225px) 85vw, 225px\" \/><figcaption>Watch best friends roast by the fire.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I am on vacation, I usually do a few things. &lt;read books&gt;&lt;insert picture here&gt; &lt;play music&gt;&lt;insert picture here&gt; &lt;watch movies&gt;&lt;insert picture here&gt;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[6,7,1],"tags":[],"class_list":["post-1035","post","type-post","status-publish","format-standard","hentry","category-diary","category-family","category-uncategorized"],"jetpack_sharing_enabled":true,"amp_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=\/wp\/v2\/posts\/1035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1035"}],"version-history":[{"count":7,"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=\/wp\/v2\/posts\/1035\/revisions"}],"predecessor-version":[{"id":1050,"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=\/wp\/v2\/posts\/1035\/revisions\/1050"}],"wp:attachment":[{"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}