[{"data":1,"prerenderedAt":258},["ShallowReactive",2],{"i-lucide:menu":3,"i-lucide:arrow-up-right":8,"i-lucide:moon":10,"i-lucide:sun":12,"i-lucide:rss":14,"i-simple-icons:github":16,"i-simple-icons:linkedin":18,"post-\u002F2010\u002Fthe-most-brilliant-python-script-ever-written":21,"surround-\u002F2010\u002Fthe-most-brilliant-python-script-ever-written":245,"i-lucide:arrow-left":254,"i-lucide:arrow-right":256},{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":7},0,24,false,"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 5h16M4 12h16M4 19h16\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":9},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M7 7h10v10M7 17L17 7\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":11},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":13},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"4\"\u002F>\u003Cpath d=\"M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":15},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M4 11a9 9 0 0 1 9 9M4 4a16 16 0 0 1 16 16\"\u002F>\u003Ccircle cx=\"5\" cy=\"19\" r=\"1\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":17},"\u003Cpath fill=\"currentColor\" d=\"M12 .297c-6.63 0-12 5.373-12 12c0 5.303 3.438 9.8 8.205 11.385c.6.113.82-.258.82-.577c0-.285-.01-1.04-.015-2.04c-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729c1.205.084 1.838 1.236 1.838 1.236c1.07 1.835 2.809 1.305 3.495.998c.108-.776.417-1.305.76-1.605c-2.665-.3-5.466-1.332-5.466-5.93c0-1.31.465-2.38 1.235-3.22c-.135-.303-.54-1.523.105-3.176c0 0 1.005-.322 3.3 1.23c.96-.267 1.98-.399 3-.405c1.02.006 2.04.138 3 .405c2.28-1.552 3.285-1.23 3.285-1.23c.645 1.653.24 2.873.12 3.176c.765.84 1.23 1.91 1.23 3.22c0 4.61-2.805 5.625-5.475 5.92c.42.36.81 1.096.81 2.22c0 1.606-.015 2.896-.015 3.286c0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":19,"hidden":20},"\u003Cpath fill=\"currentColor\" d=\"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037c-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85c3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.06 2.06 0 0 1-2.063-2.065a2.064 2.064 0 1 1 2.063 2.065m1.782 13.019H3.555V9h3.564zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0z\"\u002F>",true,{"id":22,"title":23,"body":24,"category":231,"comments":232,"date":233,"description":33,"excerpt":232,"extension":234,"image":232,"meta":235,"navigation":20,"path":236,"readingTime":237,"seo":238,"stem":239,"subtitle":232,"tags":240,"wordCount":243,"__hash__":244},"posts\u002F2010\u002Fthe-most-brilliant-python-script-ever-written.md","The most brilliant python script ever written",{"type":25,"value":26,"toc":229},"minimark",[27,225],[28,29,34],"pre",{"className":30,"code":31,"language":32,"meta":33,"style":33},"language-python shiki shiki-themes github-light github-dark","#!\u002Fusr\u002Fbin\u002Fpython -tt\n\n# The most brilliant (Python) script ever created.\n# Fun for the whole family.\n\nimport sys\n\ndef main():\n  \n  print ''\n  dumbUser = 1\n\n# Ask the user if (s)he's dumb\n  while(dumbUser):\n    answer = raw_input('Are you dumb? ')\n    if answer == 'yes':\n      sys.exit(0)\n\nif __name__ == '__main__':\n  main()\n\n","python","",[35,36,37,46,52,58,64,69,80,85,98,104,115,127,132,138,147,168,186,197,202,219],"code",{"__ignoreMap":33},[38,39,42],"span",{"class":40,"line":41},"line",1,[38,43,45],{"class":44},"sJ8bj","#!\u002Fusr\u002Fbin\u002Fpython -tt\n",[38,47,49],{"class":40,"line":48},2,[38,50,51],{"emptyLinePlaceholder":20},"\n",[38,53,55],{"class":40,"line":54},3,[38,56,57],{"class":44},"# The most brilliant (Python) script ever created.\n",[38,59,61],{"class":40,"line":60},4,[38,62,63],{"class":44},"# Fun for the whole family.\n",[38,65,67],{"class":40,"line":66},5,[38,68,51],{"emptyLinePlaceholder":20},[38,70,72,76],{"class":40,"line":71},6,[38,73,75],{"class":74},"szBVR","import",[38,77,79],{"class":78},"sVt8B"," sys\n",[38,81,83],{"class":40,"line":82},7,[38,84,51],{"emptyLinePlaceholder":20},[38,86,88,91,95],{"class":40,"line":87},8,[38,89,90],{"class":74},"def",[38,92,94],{"class":93},"sScJk"," main",[38,96,97],{"class":78},"():\n",[38,99,101],{"class":40,"line":100},9,[38,102,103],{"class":78},"  \n",[38,105,107,111],{"class":40,"line":106},10,[38,108,110],{"class":109},"sj4cs","  print",[38,112,114],{"class":113},"sZZnC"," ''\n",[38,116,118,121,124],{"class":40,"line":117},11,[38,119,120],{"class":78},"  dumbUser ",[38,122,123],{"class":74},"=",[38,125,126],{"class":109}," 1\n",[38,128,130],{"class":40,"line":129},12,[38,131,51],{"emptyLinePlaceholder":20},[38,133,135],{"class":40,"line":134},13,[38,136,137],{"class":44},"# Ask the user if (s)he's dumb\n",[38,139,141,144],{"class":40,"line":140},14,[38,142,143],{"class":74},"  while",[38,145,146],{"class":78},"(dumbUser):\n",[38,148,150,153,155,159,162,165],{"class":40,"line":149},15,[38,151,152],{"class":78},"    answer ",[38,154,123],{"class":74},[38,156,158],{"class":157},"s4XuR"," raw_input",[38,160,161],{"class":78},"(",[38,163,164],{"class":113},"'Are you dumb? '",[38,166,167],{"class":78},")\n",[38,169,171,174,177,180,183],{"class":40,"line":170},16,[38,172,173],{"class":74},"    if",[38,175,176],{"class":78}," answer ",[38,178,179],{"class":74},"==",[38,181,182],{"class":113}," 'yes'",[38,184,185],{"class":78},":\n",[38,187,189,192,195],{"class":40,"line":188},17,[38,190,191],{"class":78},"      sys.exit(",[38,193,194],{"class":109},"0",[38,196,167],{"class":78},[38,198,200],{"class":40,"line":199},18,[38,201,51],{"emptyLinePlaceholder":20},[38,203,205,208,211,214,217],{"class":40,"line":204},19,[38,206,207],{"class":74},"if",[38,209,210],{"class":109}," __name__",[38,212,213],{"class":74}," ==",[38,215,216],{"class":113}," '__main__'",[38,218,185],{"class":78},[38,220,222],{"class":40,"line":221},20,[38,223,224],{"class":78},"  main()\n",[226,227,228],"style",{},"html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .s4XuR, html code.shiki .s4XuR{--shiki-default:#E36209;--shiki-dark:#FFAB70}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":33,"searchDepth":48,"depth":48,"links":230},[],"Projects",null,"2010-07-20","md",{},"\u002F2010\u002Fthe-most-brilliant-python-script-ever-written","less than 1 minute",{"title":23,"description":33},"2010\u002Fthe-most-brilliant-python-script-ever-written",[32,241,242],"script","toy",51,"Jn0khla3Ovp4jzvBTzUlGiMVmoCtlkWuw6qQfgnaUgg",[246,250],{"title":247,"path":248,"stem":249,"children":-1},"Liitun selle avaliku kirjaga","\u002F2010\u002Fliitun-selle-avaliku-kirjaga","2010\u002Fliitun-selle-avaliku-kirjaga",{"title":251,"path":252,"stem":253,"children":-1},"Chatting with a ChatterBot AI in Python","\u002F2010\u002Fchatting-with-a-chatterbot-ai-in-python","2010\u002Fchatting-with-a-chatterbot-ai-in-python",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":255},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m12 19l-7-7l7-7m7 7H5\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":257},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M5 12h14m-7-7l7 7l-7 7\"\u002F>",1790886933916]