{"id":7987,"date":"2020-10-17T17:51:09","date_gmt":"2020-10-17T10:51:09","guid":{"rendered":"https:\/\/witpoko.com\/?p=7987"},"modified":"2020-10-17T22:19:42","modified_gmt":"2020-10-17T15:19:42","slug":"%e0%b8%a7%e0%b8%b4%e0%b8%97%e0%b8%a2%e0%b9%8c%e0%b8%a1-%e0%b8%95%e0%b9%89%e0%b8%99-%e0%b8%ab%e0%b8%b1%e0%b8%94%e0%b9%84%e0%b8%9e%e0%b8%98%e0%b8%ad%e0%b8%99-lists-%e0%b8%ab%e0%b8%b1%e0%b8%94","status":"publish","type":"post","link":"https:\/\/witpoko.com\/?p=7987","title":{"rendered":"\u0e27\u0e34\u0e17\u0e22\u0e4c\u0e21.\u0e15\u0e49\u0e19: \u0e2b\u0e31\u0e14\u0e44\u0e1e\u0e18\u0e2d\u0e19 (Lists, permutations), \u0e2b\u0e31\u0e14\u0e43\u0e0a\u0e49 TRACKER"},"content":{"rendered":"\n<p>1. \u0e04\u0e25\u0e32\u0e2a\u0e23\u0e38\u0e48\u0e19\u0e1e\u0e35\u0e48 \u0e40\u0e23\u0e35\u0e22\u0e19 Python \u0e08\u0e32\u0e01\u0e2b\u0e19\u0e31\u0e07\u0e2a\u0e37\u0e2d\u0e1f\u0e23\u0e35\u0e1a\u0e19\u0e40\u0e27\u0e47\u0e1a\u0e0a\u0e37\u0e48\u0e2d&nbsp;<a rel=\"noreferrer noopener\" href=\"http:\/\/automatetheboringstuff.com\" target=\"_blank\">Automate the Boring Stuff with Python<\/a>&nbsp;\u0e42\u0e14\u0e22\u0e40\u0e02\u0e35\u0e22\u0e19\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e43\u0e19&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/codewith.mu\/en\/\" target=\"_blank\">Mu-Editor<\/a>&nbsp;\u0e40\u0e23\u0e32\u0e04\u0e38\u0e22\u0e01\u0e31\u0e19\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07&nbsp;<a rel=\"noreferrer noopener\" href=\"http:\/\/automatetheboringstuff.com\/2e\/chapter3\/\" target=\"_blank\">Lists<\/a>&nbsp;\u0e41\u0e25\u0e30 \u0e17\u0e14\u0e25\u0e2d\u0e07\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e15\u0e48\u0e32\u0e07\u0e46\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e01\u0e31\u0e1a list \u0e40\u0e0a\u0e48\u0e19 len, \u0e01\u0e32\u0e23 index, append, pop, \u0e01\u0e32\u0e23\u0e40\u0e2d\u0e32 list \u0e21\u0e32\u0e23\u0e27\u0e21\u0e01\u0e31\u0e19, sort, \u0e01\u0e32\u0e23\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19 list \u0e40\u0e1b\u0e47\u0e19 tuple \u0e41\u0e25\u0e30 set \u0e41\u0e25\u0e30\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e01\u0e25\u0e31\u0e1a, \u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49 in \u0e41\u0e25\u0e30 not in, \u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49 count, join, split<\/p>\n\n\n\n<p>2. \u0e40\u0e09\u0e25\u0e22\u0e01\u0e32\u0e23\u0e1a\u0e49\u0e32\u0e19\u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">def convert_C_to_F(c):\n    \"\u0e41\u0e1b\u0e25\u0e07\u0e2d\u0e38\u0e13\u0e2b\u0e20\u0e39\u0e21\u0e34 c \u0e40\u0e0b\u0e25\u0e40\u0e0b\u0e35\u0e22\u0e2a\u0e40\u0e1b\u0e47\u0e19\u0e1f\u0e32\u0e40\u0e23\u0e19\u0e44\u0e2e\u0e15\u0e4c\"\n    return c*9\/5+32\n\ndef convert_F_to_C(f):\n    \"\u0e41\u0e1b\u0e25\u0e07\u0e2d\u0e38\u0e13\u0e2b\u0e20\u0e39\u0e21\u0e34 f \u0e1f\u0e32\u0e40\u0e23\u0e19\u0e44\u0e2e\u0e15\u0e4c\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e0b\u0e25\u0e40\u0e0b\u0e35\u0e22\u0e2a\"\n    return (f-32)*5\/9\n    \ndef GCD(a,b):\n    \"\u0e2b\u0e32 \u0e2b.\u0e23.\u0e21. \u0e02\u0e2d\u0e07 a \u0e41\u0e25\u0e30 b\"\n    #Euclid GCD algorithm\n    while(a != b):\n        if b > a:\n            a, b = b, a\n\n        a, b = a-b, b\n\n    return(a)<\/pre>\n\n\n\n<p>3.  \u0e41\u0e19\u0e30\u0e19\u0e33\u0e43\u0e2b\u0e49\u0e40\u0e14\u0e47\u0e01\u0e46\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01 itertools.permutations \u0e21\u0e32\u0e25\u0e2d\u0e07\u0e2b\u0e32\u0e04\u0e27\u0e32\u0e21\u0e19\u0e48\u0e32\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e17\u0e35\u0e48\u0e40\u0e25\u0e02\u0e40\u0e08\u0e47\u0e14\u0e2b\u0e25\u0e31\u0e01\u0e17\u0e35\u0e48\u0e21\u0e35\u0e40\u0e25\u0e02 1-7 \u0e04\u0e23\u0e1a\u0e17\u0e38\u0e01\u0e15\u0e31\u0e27\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e2b\u0e32\u0e23\u0e14\u0e49\u0e27\u0e22 11 \u0e25\u0e07\u0e15\u0e31\u0e27 (\u0e21\u0e35\u0e27\u0e34\u0e18\u0e35\u0e17\u0e33\u0e14\u0e49\u0e27\u0e22\u0e21\u0e37\u0e2d\u0e17\u0e35\u0e48\u0e41\u0e2a\u0e14\u0e07\u0e27\u0e48\u0e32\u0e04\u0e27\u0e32\u0e21\u0e19\u0e48\u0e32\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19 = 4\/35)<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#\u0e14\u0e39\u0e27\u0e48\u0e32\u0e40\u0e25\u0e02 7 \u0e2b\u0e25\u0e31\u0e01\u0e17\u0e35\u0e48\u0e40\u0e2d\u0e32\u0e40\u0e25\u0e02 1,2,3..,7 \u0e21\u0e32\u0e40\u0e23\u0e35\u0e22\u0e07\u0e01\u0e31\u0e19\u0e41\u0e1a\u0e1a\u0e44\u0e21\u0e48\u0e0b\u0e49\u0e33\u0e01\u0e31\u0e19\n#\u0e08\u0e30\u0e2b\u0e32\u0e23\u0e14\u0e49\u0e27\u0e22 11 \u0e25\u0e07\u0e15\u0e31\u0e27\u0e01\u0e35\u0e48\u0e15\u0e31\u0e27\n#\u0e21\u0e35\u0e27\u0e34\u0e18\u0e35\u0e17\u0e33\u0e14\u0e49\u0e27\u0e22\u0e21\u0e37\u0e2d\u0e17\u0e35\u0e48\u0e41\u0e2a\u0e14\u0e07\u0e27\u0e48\u0e32\u0e04\u0e27\u0e32\u0e21\u0e19\u0e48\u0e32\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e17\u0e35\u0e48\u0e08\u0e30\u0e2b\u0e32\u0e23\u0e14\u0e49\u0e27\u0e22 11 \u0e25\u0e07\u0e15\u0e31\u0e27\n#\u0e40\u0e17\u0e48\u0e32\u0e01\u0e31\u0e1a 4\/35\n\nimport itertools\n\ndigits = []\nfor d in range(1,8):\n    digits.append(str(d))\n\ntotal = 0\ndivisible = 0\n\nfor i in itertools.permutations(digits):\n    total = total + 1\n    #print(i)\n    number = int(\"\".join(i))\n    #print(i, number)\n    if number % 11 == 0:\n        print(number)\n        divisible = divisible + 1\n\nprint(\"Total numbers: \" + str(total))\nprint(\"Divisible by 11: \" + str(divisible))\n\n\n<\/pre>\n\n\n\n<p>4. \u0e01\u0e32\u0e23\u0e1a\u0e49\u0e32\u0e19\u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c\u0e19\u0e35\u0e49\u0e04\u0e37\u0e2d\u0e44\u0e1b\u0e2d\u0e48\u0e32\u0e19\u0e1a\u0e17\u0e15\u0e48\u0e2d\u0e44\u0e1b\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07 <a rel=\"noreferrer noopener\" href=\"http:\/\/automatetheboringstuff.com\/2e\/chapter5\/\" target=\"_blank\">Dictionaries<\/a><\/p>\n\n\n\n<p>5. \u0e04\u0e25\u0e32\u0e2a\u0e23\u0e38\u0e48\u0e19\u0e19\u0e49\u0e2d\u0e07\u0e2b\u0e31\u0e14\u0e43\u0e0a\u0e49\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 Tracker \u0e42\u0e14\u0e22\u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14\u0e41\u0e25\u0e30\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e08\u0e32\u0e01 <a rel=\"noreferrer noopener\" href=\"https:\/\/physlets.org\/tracker\/\" target=\"_blank\">https:\/\/physlets.org\/tracker\/<\/a> \u0e40\u0e23\u0e32\u0e16\u0e48\u0e32\u0e22\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d\u0e01\u0e32\u0e23\u0e15\u0e01\u0e02\u0e2d\u0e07\u0e25\u0e39\u0e01\u0e1a\u0e32\u0e2a\u0e41\u0e25\u0e49\u0e27\u0e43\u0e2b\u0e49 Tracker \u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e14\u0e39 \u0e27\u0e34\u0e18\u0e35\u0e43\u0e0a\u0e49\u0e01\u0e47\u0e40\u0e2b\u0e21\u0e37\u0e2d\u0e19\u0e46\u0e01\u0e31\u0e1a\u0e17\u0e35\u0e48\u0e1c\u0e21\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01\u0e44\u0e27\u0e49\u0e17\u0e35\u0e48\u0e04\u0e25\u0e34\u0e1b\u0e19\u0e35\u0e49\u0e04\u0e23\u0e31\u0e1a: <\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe loading=\"lazy\" class=\"youtube-player\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/rOpDQjsR64M?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en-US&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span>\n<\/div><\/figure>\n\n\n\n<p>\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d\u0e41\u0e25\u0e30\u0e44\u0e1f\u0e25\u0e4c .trk <a rel=\"noreferrer noopener\" href=\"https:\/\/onedrive.live.com\/?authkey=%21AMV3yPT1OeWirgk&amp;id=DF6237E8B4CC5842%2116151&amp;cid=DF6237E8B4CC5842\" target=\"_blank\">\u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48\u0e19\u0e35\u0e48\u0e04\u0e23\u0e31\u0e1a<\/a><\/p>\n\n\n\n<iframe loading=\"lazy\" src=\"https:\/\/www.facebook.com\/plugins\/video.php?height=421&amp;href=https%3A%2F%2Fwww.facebook.com%2Fpongskorn.saipetch%2Fvideos%2F10157284411186174%2F&amp;show_text=false&amp;width=560\" width=\"560\" height=\"421\" style=\"border:none;overflow:hidden\" scrolling=\"no\" frameborder=\"0\" allowtransparency=\"true\" allow=\"encrypted-media\" allowfullscreen=\"true\"><\/iframe>\n","protected":false},"excerpt":{"rendered":"<p>1. \u0e04\u0e25\u0e32\u0e2a\u0e23\u0e38\u0e48\u0e19\u0e1e\u0e35\u0e48 \u0e40\u0e23\u0e35\u0e22\u0e19 Python \u0e08\u0e32\u0e01\u0e2b\u0e19\u0e31\u0e07\u0e2a\u0e37\u0e2d\u0e1f\u0e23\u0e35\u0e1a\u0e19\u0e40\u0e27\u0e47\u0e1a\u0e0a\u0e37\u0e48\u0e2d&nbsp;Automate the Boring Stuff with Python&nbsp;\u0e42\u0e14\u0e22\u0e40\u0e02\u0e35\u0e22\u0e19\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e43\u0e19&nbsp;Mu-Editor&nbsp;\u0e40\u0e23\u0e32\u0e04\u0e38\u0e22\u0e01\u0e31\u0e19\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07&nbsp;Lists&nbsp;\u0e41\u0e25\u0e30 \u0e17\u0e14\u0e25\u0e2d\u0e07\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e15\u0e48\u0e32\u0e07\u0e46\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e01\u0e31\u0e1a list \u0e40\u0e0a\u0e48\u0e19 len, \u0e01\u0e32\u0e23 index, &hellip; <a title=\"\u0e27\u0e34\u0e17\u0e22\u0e4c\u0e21.\u0e15\u0e49\u0e19: \u0e2b\u0e31\u0e14\u0e44\u0e1e\u0e18\u0e2d\u0e19 (Lists, permutations), \u0e2b\u0e31\u0e14\u0e43\u0e0a\u0e49 TRACKER\" class=\"hm-read-more\" href=\"https:\/\/witpoko.com\/?p=7987\"><span class=\"screen-reader-text\">\u0e27\u0e34\u0e17\u0e22\u0e4c\u0e21.\u0e15\u0e49\u0e19: \u0e2b\u0e31\u0e14\u0e44\u0e1e\u0e18\u0e2d\u0e19 (Lists, permutations), \u0e2b\u0e31\u0e14\u0e43\u0e0a\u0e49 TRACKER<\/span>Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":7989,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[2,117,3,4,502,6],"tags":[513],"class_list":["post-7987","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-education","category-programming","category-science-class","category-4","category-502","category-6","tag-513"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/witpoko.com\/wp-content\/uploads\/2020\/10\/Screen-Shot-2563-10-17-at-17.48.46.jpg?fit=2272%2C1760&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4UNq0-24P","_links":{"self":[{"href":"https:\/\/witpoko.com\/index.php?rest_route=\/wp\/v2\/posts\/7987","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/witpoko.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/witpoko.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/witpoko.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/witpoko.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7987"}],"version-history":[{"count":4,"href":"https:\/\/witpoko.com\/index.php?rest_route=\/wp\/v2\/posts\/7987\/revisions"}],"predecessor-version":[{"id":7992,"href":"https:\/\/witpoko.com\/index.php?rest_route=\/wp\/v2\/posts\/7987\/revisions\/7992"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/witpoko.com\/index.php?rest_route=\/wp\/v2\/media\/7989"}],"wp:attachment":[{"href":"https:\/\/witpoko.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7987"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/witpoko.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7987"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/witpoko.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}