{"id":17035,"date":"2020-11-18T15:06:38","date_gmt":"2020-11-18T08:06:38","guid":{"rendered":"https:\/\/www.thepexcel.com\/?p=17035"},"modified":"2025-04-24T13:32:19","modified_gmt":"2025-04-24T06:32:19","slug":"python-excel-03-loop-if","status":"publish","type":"post","link":"https:\/\/www.thepexcel.com\/python-excel-03-loop-if\/","title":{"rendered":"\u0e2b\u0e31\u0e14 Python \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e04\u0e19\u0e40\u0e1b\u0e47\u0e19 Excel : \u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48 3 \u2013 \u0e01\u0e32\u0e23\u0e27\u0e19 Loop \u0e41\u0e25\u0e30 \u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02 if"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.thepexcel.com\/python-excel-02-data-types\/\" class=\"rank-math-link\">\u0e43\u0e19\u0e15\u0e2d\u0e19\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e19\u0e35\u0e49<\/a>\u0e40\u0e23\u0e32\u0e44\u0e14\u0e49\u0e40\u0e23\u0e35\u0e22\u0e19\u0e23\u0e39\u0e49\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e02\u0e2d\u0e07\u0e20\u0e32\u0e29\u0e32 python \u0e44\u0e1b\u0e41\u0e25\u0e49\u0e27 \u0e43\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49\u0e40\u0e23\u0e32\u0e08\u0e30\u0e40\u0e23\u0e34\u0e48\u0e21\u0e44\u0e14\u0e49\u0e40\u0e2b\u0e47\u0e19\u0e1e\u0e25\u0e31\u0e07\u0e41\u0e25\u0e30\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e35\u0e48\u0e19\u0e48\u0e32\u0e2a\u0e19\u0e43\u0e08\u0e02\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e40\u0e02\u0e35\u0e22\u0e19\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e0b\u0e31\u0e01\u0e17\u0e35 (\u0e01\u0e48\u0e2d\u0e19\u0e08\u0e30\u0e44\u0e14\u0e49\u0e40\u0e2b\u0e47\u0e19\u0e1e\u0e25\u0e31\u0e07\u0e02\u0e31\u0e49\u0e19\u0e2a\u0e38\u0e14\u0e15\u0e2d\u0e19\u0e40\u0e23\u0e35\u0e22\u0e19\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e1e\u0e27\u0e01 Function \u0e41\u0e25\u0e30 Library \u0e15\u0e48\u0e32\u0e07\u0e46) <\/p>\n\n\n\n<p>\u0e19\u0e31\u0e48\u0e19\u0e01\u0e47\u0e04\u0e37\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e19\u0e01\u0e32\u0e23\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21 Flow \u0e01\u0e32\u0e23\u0e44\u0e2b\u0e25\u0e02\u0e2d\u0e07\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e43\u0e19 Program \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32 \u0e40\u0e0a\u0e48\u0e19<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e07\u0e32\u0e19\u0e17\u0e35\u0e48\u0e41\u0e15\u0e01\u0e15\u0e48\u0e32\u0e07\u0e01\u0e31\u0e19\u0e15\u0e32\u0e21\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e44\u0e14\u0e49<\/strong> = \u0e41\u0e22\u0e01\u0e01\u0e32\u0e23\u0e15\u0e31\u0e14\u0e2a\u0e34\u0e19\u0e43\u0e08\u0e14\u0e49\u0e27\u0e22\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e01\u0e25\u0e38\u0e48\u0e21 if<\/li><li><strong>\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e07\u0e32\u0e19\u0e2d\u0e30\u0e44\u0e23\u0e0b\u0e49\u0e33\u0e46 \u0e2b\u0e23\u0e37\u0e2d\u0e17\u0e33\u0e15\u0e32\u0e21\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e44\u0e14\u0e49<\/strong> \u0e42\u0e14\u0e22\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e2a\u0e31\u0e48\u0e07\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e19\u0e31\u0e49\u0e19\u0e40\u0e2d\u0e07\u0e2b\u0e25\u0e32\u0e22\u0e46 \u0e23\u0e2d\u0e1a = \u0e01\u0e32\u0e23\u0e27\u0e19 Loop \u0e14\u0e49\u0e27\u0e22 for, while  (\u0e0b\u0e36\u0e48\u0e07\u0e01\u0e32\u0e23\u0e27\u0e19 Loop \u0e40\u0e1b\u0e47\u0e19 Concept \u0e17\u0e35\u0e48\u0e2d\u0e32\u0e08\u0e08\u0e30\u0e44\u0e21\u0e48\u0e04\u0e38\u0e49\u0e19\u0e40\u0e04\u0e22\u0e01\u0e31\u0e1a\u0e04\u0e19\u0e43\u0e0a\u0e49 Excel \u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49\u0e40\u0e02\u0e35\u0e22\u0e19\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e21\u0e32\u0e01\u0e48\u0e2d\u0e19)<\/li><\/ol>\n\n\n\n<p>\u0e0b\u0e36\u0e48\u0e07\u0e2a\u0e34\u0e48\u0e07\u0e40\u0e2b\u0e25\u0e48\u0e32\u0e19\u0e35\u0e49\u0e40\u0e1b\u0e47\u0e19\u0e08\u0e38\u0e14\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19\u0e02\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e17\u0e33\u0e2d\u0e30\u0e44\u0e23\u0e17\u0e35\u0e48 Advance \u0e21\u0e32\u0e01\u0e02\u0e36\u0e49\u0e19\u0e15\u0e48\u0e2d\u0e44\u0e1b\u0e43\u0e19\u0e2d\u0e19\u0e32\u0e04\u0e15\u0e44\u0e14\u0e49 \u0e40\u0e23\u0e32\u0e21\u0e32\u0e14\u0e39\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e17\u0e35\u0e25\u0e30\u0e01\u0e25\u0e38\u0e48\u0e21\u0e01\u0e31\u0e19<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u0e2a\u0e32\u0e23\u0e1a\u0e31\u0e0d<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.thepexcel.com\/python-excel-03-loop-if\/#%E0%B9%80%E0%B8%87%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%99%E0%B9%84%E0%B8%82%E0%B8%81%E0%B8%A5%E0%B8%B8%E0%B9%88%E0%B8%A1_if_%E0%B9%83%E0%B8%99_Python\" >\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e01\u0e25\u0e38\u0e48\u0e21 if \u0e43\u0e19 Python<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.thepexcel.com\/python-excel-03-loop-if\/#%E0%B9%80%E0%B8%87%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%99%E0%B9%84%E0%B8%82%E0%B9%80%E0%B8%9E%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%A7%E0%B8%99_Loop_%E0%B9%83%E0%B8%99_Python_For_Loop\" >\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e01\u0e32\u0e23\u0e27\u0e19 Loop \u0e43\u0e19 Python : For Loop<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.thepexcel.com\/python-excel-03-loop-if\/#for_%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%97%E0%B8%B3%E0%B8%87%E0%B8%B2%E0%B8%99%E0%B8%8B%E0%B9%89%E0%B8%B3%E0%B9%86_%E0%B8%AB%E0%B8%A5%E0%B8%B2%E0%B8%A2%E0%B9%86_%E0%B8%A3%E0%B8%AD%E0%B8%9A%E0%B8%95%E0%B8%B2%E0%B8%A1%E0%B8%88%E0%B8%B3%E0%B8%99%E0%B8%A7%E0%B8%99%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%A3%E0%B8%B0%E0%B8%9A%E0%B8%B8\" >for \u0e41\u0e1a\u0e1a\u0e17\u0e33\u0e07\u0e32\u0e19\u0e0b\u0e49\u0e33\u0e46 \u0e2b\u0e25\u0e32\u0e22\u0e46 \u0e23\u0e2d\u0e1a\u0e15\u0e32\u0e21\u0e08\u0e33\u0e19\u0e27\u0e19\u0e17\u0e35\u0e48\u0e23\u0e30\u0e1a\u0e38<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.thepexcel.com\/python-excel-03-loop-if\/#for_%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%97%E0%B8%B3%E0%B8%87%E0%B8%B2%E0%B8%99%E0%B8%A3%E0%B9%88%E0%B8%A7%E0%B8%A1%E0%B8%81%E0%B8%B1%E0%B8%9A%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99%E0%B8%8A%E0%B8%B8%E0%B8%94\" >for \u0e41\u0e1a\u0e1a\u0e17\u0e33\u0e07\u0e32\u0e19\u0e23\u0e48\u0e27\u0e21\u0e01\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e1b\u0e47\u0e19\u0e0a\u0e38\u0e14<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.thepexcel.com\/python-excel-03-loop-if\/#%E0%B8%A1%E0%B8%B2%E0%B8%94%E0%B8%B9%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%97%E0%B8%B3%E0%B8%87%E0%B8%B2%E0%B8%99%E0%B8%A3%E0%B9%88%E0%B8%A7%E0%B8%A1%E0%B8%81%E0%B8%B1%E0%B8%9A_list_%E0%B8%81%E0%B9%88%E0%B8%AD%E0%B8%99%E0%B8%84%E0%B8%A3%E0%B8%B1%E0%B8%9A\" >\u0e21\u0e32\u0e14\u0e39\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e23\u0e48\u0e27\u0e21\u0e01\u0e31\u0e1a list \u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e31\u0e1a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.thepexcel.com\/python-excel-03-loop-if\/#%E0%B8%A1%E0%B8%B2%E0%B8%94%E0%B8%B9%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%97%E0%B8%B3%E0%B8%87%E0%B8%B2%E0%B8%99%E0%B8%A3%E0%B9%88%E0%B8%A7%E0%B8%A1%E0%B8%81%E0%B8%B1%E0%B8%9A_string_%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B8%95%E0%B9%88%E0%B8%AD%E0%B8%84%E0%B8%A3%E0%B8%B1%E0%B8%9A\" >\u0e21\u0e32\u0e14\u0e39\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e23\u0e48\u0e27\u0e21\u0e01\u0e31\u0e1a string \u0e01\u0e31\u0e19\u0e15\u0e48\u0e2d\u0e04\u0e23\u0e31\u0e1a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.thepexcel.com\/python-excel-03-loop-if\/#%E0%B8%95%E0%B9%88%E0%B8%AD%E0%B9%84%E0%B8%9B%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%97%E0%B8%B3%E0%B8%87%E0%B8%B2%E0%B8%99%E0%B8%A3%E0%B9%88%E0%B8%A7%E0%B8%A1%E0%B8%81%E0%B8%B1%E0%B8%9A_dictionary_%E0%B8%84%E0%B8%A3%E0%B8%B1%E0%B8%9A\" >\u0e15\u0e48\u0e2d\u0e44\u0e1b\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e23\u0e48\u0e27\u0e21\u0e01\u0e31\u0e1a dictionary \u0e04\u0e23\u0e31\u0e1a<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.thepexcel.com\/python-excel-03-loop-if\/#%E0%B9%80%E0%B8%87%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%99%E0%B9%84%E0%B8%82%E0%B9%80%E0%B8%9E%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%A7%E0%B8%99_Loop_%E0%B9%83%E0%B8%99_Python_While_Loop\" >\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e01\u0e32\u0e23\u0e27\u0e19 Loop \u0e43\u0e19 Python : While Loop<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.thepexcel.com\/python-excel-03-loop-if\/#%E0%B8%88%E0%B8%9A%E0%B8%95%E0%B8%AD%E0%B8%99\" >\u0e08\u0e1a\u0e15\u0e2d\u0e19<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.thepexcel.com\/python-excel-03-loop-if\/#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D_Series_Python\" >\u0e2a\u0e32\u0e23\u0e1a\u0e31\u0e0d Series Python<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E0%B9%80%E0%B8%87%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%99%E0%B9%84%E0%B8%82%E0%B8%81%E0%B8%A5%E0%B8%B8%E0%B9%88%E0%B8%A1_if_%E0%B9%83%E0%B8%99_Python\"><\/span>\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e01\u0e25\u0e38\u0e48\u0e21 if \u0e43\u0e19 Python<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e17\u0e35\u0e48\u0e1a\u0e2d\u0e01\u0e44\u0e1b\u0e41\u0e25\u0e49\u0e27\u0e27\u0e48\u0e32\u0e01\u0e32\u0e23\u0e40\u0e02\u0e35\u0e22\u0e19 if \u0e04\u0e37\u0e2d \u0e01\u0e32\u0e23\u0e41\u0e22\u0e01\u0e01\u0e32\u0e23\u0e15\u0e31\u0e14\u0e2a\u0e34\u0e19\u0e43\u0e08\u0e43\u0e2b\u0e49\u0e17\u0e33\u0e07\u0e32\u0e19\u0e41\u0e15\u0e01\u0e15\u0e48\u0e32\u0e07\u0e01\u0e31\u0e19\u0e15\u0e32\u0e21\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e44\u0e14\u0e49 \u0e0b\u0e36\u0e48\u0e07\u0e01\u0e47\u0e40\u0e2b\u0e21\u0e37\u0e2d\u0e19\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e19 IF \u0e43\u0e19 Excel \u0e19\u0e31\u0e48\u0e19\u0e41\u0e2b\u0e25\u0e30 \u0e0b\u0e36\u0e48\u0e07\u0e15\u0e49\u0e2d\u0e07\u0e21\u0e35\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e02\u0e2d\u0e07\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e17\u0e35\u0e48\u0e08\u0e30\u0e40\u0e0a\u0e47\u0e04 \u0e41\u0e25\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e44\u0e14\u0e49\u0e27\u0e48\u0e32\u0e16\u0e49\u0e32\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e40\u0e1b\u0e47\u0e19\u0e08\u0e23\u0e34\u0e07\u0e08\u0e30\u0e17\u0e33\u0e2d\u0e30\u0e44\u0e23 \u0e16\u0e49\u0e32\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e17\u0e47\u0e08\u0e08\u0e30\u0e17\u0e33\u0e2d\u0e30\u0e44\u0e23 \u0e41\u0e04\u0e48\u0e43\u0e19 Excel \u0e43\u0e0a\u0e49\u0e40\u0e1b\u0e47\u0e19\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e19 \u0e41\u0e15\u0e48 Python \u0e43\u0e0a\u0e49\u0e40\u0e1b\u0e47\u0e19 Statement \u0e41\u0e17\u0e19<\/p>\n\n\n\n<p>\u0e43\u0e19 python \u0e08\u0e30\u0e40\u0e02\u0e35\u0e22\u0e19\u0e41\u0e1a\u0e1a\u0e19\u0e35\u0e49 <strong><span style=\"color:#cf2e2e\" class=\"tadv-color\">(\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e21\u0e32\u0e22 colon : \u0e2b\u0e25\u0e31\u0e07\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e15\u0e48\u0e32\u0e07\u0e46 \u0e41\u0e25\u0e30\u0e01\u0e32\u0e23\u0e22\u0e48\u0e2d\u0e2b\u0e19\u0e49\u0e32\u0e43\u0e19 action \u0e17\u0e35\u0e48\u0e08\u0e30\u0e17\u0e33 &#8220;\u0e2a\u0e33\u0e04\u0e31\u0e0d\u0e21\u0e32\u0e01&#8221; \u0e43\u0e19 Python)<\/span><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code language-python\"><code>if \u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02:\n  \u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e01\u0e23\u0e13\u0e35\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e40\u0e1b\u0e47\u0e19\u0e08\u0e23\u0e34\u0e07\nelse:\n  \u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e01\u0e23\u0e13\u0e35\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e17\u0e47\u0e08<\/code><\/pre>\n\n\n\n<p>\u0e40\u0e0a\u0e48\u0e19 \u0e43\u0e19 Excel \u0e40\u0e02\u0e35\u0e22\u0e19\u0e27\u0e48\u0e32<\/p>\n\n\n\n<pre class=\"wp-block-code language-xls\"><code>=IF(A1&gt;50, \"\u0e1c\u0e48\u0e32\u0e19\", \"\u0e44\u0e21\u0e48\u0e1c\u0e48\u0e32\u0e19\")<\/code><\/pre>\n\n\n\n<p>\u0e43\u0e19 python \u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e41\u0e1a\u0e1a\u0e19\u0e35\u0e49<\/p>\n\n\n\n<pre class=\"wp-block-code language-python\"><code>A1=73\nif A1&gt;50:\n  B1=\"\u0e1c\u0e48\u0e32\u0e19\"\nelse:\n  B1=\"\u0e44\u0e21\u0e48\u0e1c\u0e48\u0e32\u0e19\"\nprint(B1)<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-001.png\" alt=\"\" class=\"wp-image-17038\" width=\"291\" height=\"235\" srcset=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-001.png 333w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-001-300x242.png 300w\" sizes=\"auto, (max-width: 291px) 100vw, 291px\" \/><\/figure>\n\n\n\n<p>\u0e41\u0e15\u0e48\u0e43\u0e19 Python \u0e08\u0e23\u0e34\u0e07\u0e46 \u0e40\u0e02\u0e35\u0e22\u0e19 if \u0e41\u0e1a\u0e1a\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e21\u0e35 else \u0e01\u0e47\u0e44\u0e14\u0e49 \u0e40\u0e0a\u0e48\u0e19<\/p>\n\n\n\n<pre class=\"wp-block-code language-python\"><code>A1=73\nif A1&gt;100:\n  print(\"\u0e40\u0e22\u0e35\u0e48\u0e22\u0e21\u0e21\u0e32\u0e01\")\nprint(\"\u0e08\u0e1a\")<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-002.png\" alt=\"\" class=\"wp-image-17040\" width=\"298\" height=\"182\" srcset=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-002.png 354w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-002-300x183.png 300w\" sizes=\"auto, (max-width: 298px) 100vw, 298px\" \/><\/figure>\n\n\n\n<p>\u0e23\u0e27\u0e21\u0e16\u0e36\u0e07\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e2a\u0e48\u0e2b\u0e25\u0e32\u0e22\u0e46 \u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e14\u0e49\u0e27\u0e22 elif (else if) \u0e44\u0e1b\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e22\u0e46 \u0e01\u0e35\u0e48\u0e23\u0e2d\u0e1a\u0e01\u0e47\u0e44\u0e14\u0e49 \u0e40\u0e0a\u0e48\u0e19<\/p>\n\n\n\n<pre class=\"wp-block-code language-python\"><code>Score=73\nif Score&gt;=80:\n  Grade=\"A\"\nelif Score&gt;=70:\n  Grade=\"B\"\nelif Score&gt;=60:\n  Grade=\"C\"\nelif Score&gt;=50:\n  Grade=\"D\"\nelse:\n  Grade=\"F\"\nprint(Grade)<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-003.png\" alt=\"\" class=\"wp-image-17041\" width=\"236\" height=\"313\" srcset=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-003.png 322w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-003-226x300.png 226w\" sizes=\"auto, (max-width: 236px) 100vw, 236px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E0%B9%80%E0%B8%87%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%99%E0%B9%84%E0%B8%82%E0%B9%80%E0%B8%9E%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%A7%E0%B8%99_Loop_%E0%B9%83%E0%B8%99_Python_For_Loop\"><\/span>\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e01\u0e32\u0e23\u0e27\u0e19 Loop \u0e43\u0e19 Python : For Loop<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u0e01\u0e32\u0e23\u0e27\u0e19\u0e25\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e41\u0e23\u0e01\u0e17\u0e35\u0e48\u0e1c\u0e21\u0e08\u0e30\u0e02\u0e2d\u0e1e\u0e39\u0e14\u0e16\u0e36\u0e07\u0e01\u0e47\u0e04\u0e37\u0e2d for loop \u0e0b\u0e36\u0e48\u0e07\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e07\u0e32\u0e19\u0e0b\u0e49\u0e33\u0e46 \u0e44\u0e14\u0e49\u0e2b\u0e25\u0e32\u0e22\u0e46 \u0e23\u0e2d\u0e1a\u0e15\u0e32\u0e21\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 \u0e41\u0e25\u0e30\u0e22\u0e31\u0e07\u0e17\u0e33\u0e07\u0e32\u0e19\u0e23\u0e48\u0e27\u0e21\u0e01\u0e31\u0e1a Data Types \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e0a\u0e38\u0e14\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e0a\u0e48\u0e19 \u0e1e\u0e27\u0e01 list, tuple,  dictionary, set \u0e01\u0e47\u0e44\u0e14\u0e49\u0e14\u0e49\u0e27\u0e22 \u0e23\u0e27\u0e21\u0e16\u0e36\u0e07\u0e08\u0e23\u0e34\u0e07\u0e46 \u0e41\u0e25\u0e49\u0e27\u0e01\u0e47\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e07\u0e32\u0e19\u0e01\u0e31\u0e1a string \u0e44\u0e14\u0e49\u0e14\u0e49\u0e27\u0e22 (\u0e21\u0e2d\u0e07\u0e27\u0e48\u0e32 string \u0e04\u0e37\u0e2d\u0e0a\u0e38\u0e14\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e23\u0e27\u0e21\u0e40\u0e2d\u0e32\u0e41\u0e15\u0e48\u0e41\u0e25\u0e30 character \u0e21\u0e32\u0e44\u0e27\u0e49\u0e14\u0e49\u0e27\u0e22\u0e01\u0e31\u0e19\u0e40\u0e1b\u0e47\u0e19\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"for_%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%97%E0%B8%B3%E0%B8%87%E0%B8%B2%E0%B8%99%E0%B8%8B%E0%B9%89%E0%B8%B3%E0%B9%86_%E0%B8%AB%E0%B8%A5%E0%B8%B2%E0%B8%A2%E0%B9%86_%E0%B8%A3%E0%B8%AD%E0%B8%9A%E0%B8%95%E0%B8%B2%E0%B8%A1%E0%B8%88%E0%B8%B3%E0%B8%99%E0%B8%A7%E0%B8%99%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%A3%E0%B8%B0%E0%B8%9A%E0%B8%B8\"><\/span>for \u0e41\u0e1a\u0e1a\u0e17\u0e33\u0e07\u0e32\u0e19\u0e0b\u0e49\u0e33\u0e46 \u0e2b\u0e25\u0e32\u0e22\u0e46 \u0e23\u0e2d\u0e1a\u0e15\u0e32\u0e21\u0e08\u0e33\u0e19\u0e27\u0e19\u0e17\u0e35\u0e48\u0e23\u0e30\u0e1a\u0e38<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u0e21\u0e32\u0e14\u0e39\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e0b\u0e49\u0e33\u0e46 \u0e2b\u0e25\u0e32\u0e22\u0e46 \u0e23\u0e2d\u0e1a\u0e15\u0e32\u0e21\u0e08\u0e33\u0e19\u0e27\u0e19\u0e17\u0e35\u0e48\u0e23\u0e30\u0e1a\u0e38\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e31\u0e1a<\/p>\n\n\n\n<p>\u0e2a\u0e21\u0e21\u0e15\u0e34\u0e1c\u0e21\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 print \u0e04\u0e33\u0e27\u0e48\u0e32 &#8220;\u0e40\u0e17\u0e1e\u0e21\u0e32\u0e01&#8221; \u0e2d\u0e2d\u0e01\u0e21\u0e32 6 \u0e23\u0e2d\u0e1a \u0e27\u0e34\u0e18\u0e35\u0e41\u0e23\u0e01\u0e17\u0e35\u0e48\u0e17\u0e33\u0e44\u0e14\u0e49\u0e04\u0e37\u0e2d\u0e41\u0e1a\u0e1a\u0e19\u0e35\u0e49<\/p>\n\n\n\n<pre class=\"wp-block-code language-python\"><code>print(\"\u0e40\u0e17\u0e1e\u0e21\u0e32\u0e01\")\nprint(\"\u0e40\u0e17\u0e1e\u0e21\u0e32\u0e01\")\nprint(\"\u0e40\u0e17\u0e1e\u0e21\u0e32\u0e01\")\nprint(\"\u0e40\u0e17\u0e1e\u0e21\u0e32\u0e01\")\nprint(\"\u0e40\u0e17\u0e1e\u0e21\u0e32\u0e01\")\nprint(\"\u0e40\u0e17\u0e1e\u0e21\u0e32\u0e01\")<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-006.png\" alt=\"\" class=\"wp-image-17048\" width=\"240\" height=\"336\" srcset=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-006.png 282w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-006-214x300.png 214w\" sizes=\"auto, (max-width: 240px) 100vw, 240px\" \/><\/figure>\n\n\n\n<p>\u0e0b\u0e36\u0e48\u0e07\u0e40\u0e1b\u0e47\u0e19\u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e22\u0e37\u0e14\u0e2b\u0e22\u0e38\u0e48\u0e19\u0e40\u0e2d\u0e32\u0e0b\u0e30\u0e40\u0e25\u0e22 \u0e41\u0e25\u0e30\u0e16\u0e49\u0e32\u0e1c\u0e21\u0e2d\u0e22\u0e32\u0e01\u0e17\u0e33\u0e23\u0e49\u0e2d\u0e22\u0e23\u0e2d\u0e1a\u0e1c\u0e21\u0e15\u0e49\u0e2d\u0e07\u0e15\u0e32\u0e22\u0e41\u0e19\u0e48\u0e46 &#8230;  \u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48\u0e14\u0e35\u0e01\u0e27\u0e48\u0e32\u0e04\u0e37\u0e2d\u0e43\u0e0a\u0e49 for \u0e21\u0e32\u0e0a\u0e48\u0e27\u0e22 \u0e23\u0e48\u0e27\u0e21\u0e01\u0e31\u0e1a\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 range(\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02)  \u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e17\u0e35\u0e48\u0e27\u0e48\u0e32<\/p>\n\n\n\n<pre class=\"wp-block-code language-python\"><code>for \u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 in range(\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02):  \n  \u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e17\u0e33<\/code><\/pre>\n\n\n\n<p>\u0e42\u0e14\u0e22\u0e17\u0e35\u0e48\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 range \u0e21\u0e35\u0e27\u0e34\u0e18\u0e35\u0e17\u0e33\u0e07\u0e32\u0e19\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>range(6) \u0e08\u0e30\u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e25\u0e02 sequence \u0e15\u0e31\u0e49\u0e07\u0e41\u0e15\u0e48 0 \u0e41\u0e15\u0e48\u0e44\u0e21\u0e48\u0e23\u0e27\u0e21 6 \u0e19\u0e31\u0e48\u0e19\u0e04\u0e37\u0e2d 0,1,2,3,4,5 (\u0e44\u0e21\u0e48\u0e23\u0e27\u0e216)<\/li><li>range(2, 6) \u0e08\u0e30\u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e25\u0e02 sequence \u0e15\u0e31\u0e49\u0e07\u0e41\u0e15\u0e48 2 \u0e41\u0e15\u0e48\u0e44\u0e21\u0e48\u0e23\u0e27\u0e21 6 \u0e19\u0e31\u0e48\u0e19\u0e04\u0e37\u0e2d 2,3,4,5 (\u0e44\u0e21\u0e48\u0e23\u0e27\u0e216)<\/li><li>range(2,&nbsp;17,&nbsp;3) \u0e08\u0e30\u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e25\u0e02 sequence \u0e15\u0e31\u0e49\u0e07\u0e41\u0e15\u0e48 2 \u0e41\u0e15\u0e48\u0e44\u0e21\u0e48\u0e23\u0e27\u0e21 17 \u0e41\u0e25\u0e30\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e17\u0e35\u0e25\u0e30 3 \u0e19\u0e31\u0e48\u0e19\u0e04\u0e37\u0e2d 2,5,8,11,14 (\u0e44\u0e21\u0e48\u0e23\u0e27\u0e21 17)<\/li><\/ul>\n\n\n\n<p>\u0e0b\u0e36\u0e48\u0e07\u0e41\u0e1a\u0e1a\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e1a\u0e48\u0e2d\u0e22\u0e2a\u0e38\u0e14\u0e04\u0e37\u0e2d\u0e41\u0e1a\u0e1a\u0e41\u0e23\u0e01 \u0e04\u0e37\u0e2d range(\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02) \u0e2d\u0e22\u0e32\u0e01\u0e17\u0e33\u0e07\u0e32\u0e19\u0e01\u0e35\u0e48\u0e23\u0e2d\u0e1a\u0e01\u0e47\u0e43\u0e2a\u0e48\u0e44\u0e1b\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19\u0e40\u0e25\u0e22 \u0e40\u0e0a\u0e48\u0e19<\/p>\n\n\n\n<pre class=\"wp-block-code language-python\"><code># range(6) \u0e04\u0e37\u0e2d 0,1,2,3,4,5 (\u0e44\u0e21\u0e48\u0e23\u0e27\u0e216)\n\nfor num in range(6):  #\u0e43\u0e0a\u0e49\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e2d\u0e30\u0e44\u0e23\u0e41\u0e17\u0e19\u0e04\u0e33\u0e27\u0e48\u0e32 num \u0e01\u0e47\u0e44\u0e14\u0e49 \n  print(\"\u0e40\u0e17\u0e1e\u0e21\u0e32\u0e01\")<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-007.png\" alt=\"\" class=\"wp-image-17049\" width=\"497\" height=\"249\" srcset=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-007.png 674w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-007-600x301.png 600w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-007-300x150.png 300w\" sizes=\"auto, (max-width: 497px) 100vw, 497px\" \/><\/figure>\n\n\n\n<p>\u0e0b\u0e36\u0e48\u0e07\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e2b\u0e19\u0e49\u0e32 in \u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e2a\u0e34\u0e48\u0e07\u0e17\u0e35\u0e48\u0e41\u0e17\u0e19\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02\u0e43\u0e19 range \u0e41\u0e15\u0e48\u0e25\u0e30\u0e15\u0e31\u0e27 \u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e2d\u0e32\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e19\u0e31\u0e49\u0e19\u0e46 \u0e21\u0e32\u0e2d\u0e49\u0e32\u0e07\u0e2d\u0e34\u0e07\u0e44\u0e14\u0e49\u0e43\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e41\u0e15\u0e48\u0e25\u0e30\u0e23\u0e2d\u0e1a\u0e44\u0e14\u0e49\u0e2d\u0e35\u0e01 \u0e40\u0e0a\u0e48\u0e19<\/p>\n\n\n\n<pre class=\"wp-block-code language-python\"><code># range(6) \u0e04\u0e37\u0e2d 0,1,2,3,4,5 (\u0e44\u0e21\u0e48\u0e23\u0e27\u0e216)\n\nfor num in range(6):   \n  #\u0e40\u0e2d\u0e32\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 num \u0e21\u0e32\u0e43\u0e0a\u0e49\u0e44\u0e14\u0e49\n  print(\"\u0e40\u0e17\u0e1e\u0e21\u0e32\u0e01 \u0e08\u0e32\u0e01\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e40\u0e25\u0e02 \"+str(num)+\", \u0e0b\u0e36\u0e48\u0e07\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e23\u0e31\u0e19\u0e04\u0e23\u0e31\u0e49\u0e07\u0e17\u0e35\u0e48 \"+str(num+1)) <\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-008.png\" alt=\"\" class=\"wp-image-17050\" width=\"689\" height=\"292\" srcset=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-008.png 892w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-008-600x254.png 600w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-008-300x127.png 300w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-008-768x325.png 768w\" sizes=\"auto, (max-width: 689px) 100vw, 689px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"for_%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%97%E0%B8%B3%E0%B8%87%E0%B8%B2%E0%B8%99%E0%B8%A3%E0%B9%88%E0%B8%A7%E0%B8%A1%E0%B8%81%E0%B8%B1%E0%B8%9A%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99%E0%B8%8A%E0%B8%B8%E0%B8%94\"><\/span>for \u0e41\u0e1a\u0e1a\u0e17\u0e33\u0e07\u0e32\u0e19\u0e23\u0e48\u0e27\u0e21\u0e01\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e1b\u0e47\u0e19\u0e0a\u0e38\u0e14<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u0e21\u0e32\u0e14\u0e39\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e23\u0e48\u0e27\u0e21\u0e01\u0e31\u0e1a Data Types \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e0a\u0e38\u0e14\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 \u0e40\u0e0a\u0e48\u0e19  list, string \u0e41\u0e25\u0e30 dictionary \u0e01\u0e31\u0e19\u0e04\u0e23\u0e31\u0e1a<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E0%B8%A1%E0%B8%B2%E0%B8%94%E0%B8%B9%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%97%E0%B8%B3%E0%B8%87%E0%B8%B2%E0%B8%99%E0%B8%A3%E0%B9%88%E0%B8%A7%E0%B8%A1%E0%B8%81%E0%B8%B1%E0%B8%9A_list_%E0%B8%81%E0%B9%88%E0%B8%AD%E0%B8%99%E0%B8%84%E0%B8%A3%E0%B8%B1%E0%B8%9A\"><\/span><strong>\u0e21\u0e32\u0e14\u0e39\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e23\u0e48\u0e27\u0e21\u0e01\u0e31\u0e1a list \u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e31\u0e1a <\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>\u0e0b\u0e36\u0e48\u0e07\u0e04\u0e25\u0e49\u0e32\u0e22\u0e46 \u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e43\u0e0a\u0e49\u0e01\u0e31\u0e1a range \u0e19\u0e31\u0e48\u0e19\u0e41\u0e2b\u0e25\u0e30 \u0e41\u0e15\u0e48\u0e04\u0e23\u0e32\u0e27\u0e19\u0e35\u0e49\u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e2d\u0e49\u0e32\u0e07\u0e2d\u0e34\u0e07\u0e41\u0e15\u0e48\u0e25\u0e30 item \u0e43\u0e19 list \u0e19\u0e31\u0e49\u0e19\u0e46 \u0e44\u0e14\u0e49\u0e40\u0e25\u0e22 <\/p>\n\n\n\n<pre class=\"wp-block-code language-python\"><code>myList = &#91;\"Eren\", \"Mikasa\", \"Armin\", \"Levi\"]\nfor item in myList:   #\u0e43\u0e0a\u0e49\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e2d\u0e30\u0e44\u0e23\u0e41\u0e17\u0e19\u0e04\u0e33\u0e27\u0e48\u0e32 item \u0e01\u0e47\u0e44\u0e14\u0e49\n  print(item)<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-004.png\" alt=\"\" class=\"wp-image-17042\" width=\"552\" height=\"203\" srcset=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-004.png 706w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-004-600x221.png 600w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-004-300x110.png 300w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/figure>\n\n\n\n<p>\u0e0b\u0e36\u0e48\u0e07\u0e04\u0e48\u0e2d\u0e19\u0e02\u0e49\u0e32\u0e07\u0e2a\u0e30\u0e14\u0e27\u0e01\u0e04\u0e37\u0e2d\u0e40\u0e23\u0e32\u0e44\u0e21\u0e48\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e2d\u0e07\u0e21\u0e32\u0e43\u0e0a\u0e49 myList[index] \u0e43\u0e19\u0e01\u0e32\u0e23\u0e2d\u0e49\u0e32\u0e07\u0e2d\u0e34\u0e07\u0e41\u0e15\u0e48\u0e25\u0e30 item \u0e01\u0e47\u0e44\u0e14\u0e49 \u0e41\u0e16\u0e21\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e19\u0e31\u0e1a\u0e08\u0e33\u0e19\u0e27\u0e19 item \u0e14\u0e49\u0e27\u0e22\u0e0b\u0e49\u0e33 <\/p>\n\n\n\n<p>\u0e41\u0e15\u0e48\u0e16\u0e49\u0e32\u0e2d\u0e22\u0e32\u0e01\u0e08\u0e30\u0e2d\u0e49\u0e32\u0e07\u0e14\u0e49\u0e27\u0e22\u0e40\u0e25\u0e02 index \u0e08\u0e23\u0e34\u0e07\u0e46 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e44\u0e14\u0e49\u0e14\u0e49\u0e27\u0e22\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e22\u0e38\u0e01\u0e15\u0e4c\u0e43\u0e0a\u0e49 len(myList) \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e31\u0e1a\u0e08\u0e33\u0e19\u0e27\u0e19 item \u0e41\u0e25\u0e49\u0e27\u0e2a\u0e48\u0e07\u0e44\u0e1b\u0e43\u0e2b\u0e49 range \u0e43\u0e0a\u0e49\u0e15\u0e48\u0e2d \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<pre class=\"wp-block-code language-python\"><code>myList = &#91;\"Eren\", \"Mikasa\", \"Armin\", \"Levi\"]\n\n#\u0e16\u0e49\u0e32\u0e08\u0e30\u0e43\u0e0a\u0e49 concept \u0e02\u0e2d\u0e07\u0e40\u0e25\u0e02 index \u0e01\u0e47\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e41\u0e19\u0e27\u0e46 \u0e19\u0e35\u0e49\n#len(myList) \u0e04\u0e37\u0e2d\u0e19\u0e31\u0e1a\u0e27\u0e48\u0e32\u0e21\u0e35\u0e01\u0e35\u0e48 item \u0e41\u0e25\u0e49\u0e27\u0e04\u0e48\u0e2d\u0e22\u0e2a\u0e48\u0e07\u0e44\u0e1b\u0e43\u0e2b\u0e49 range \u0e2d\u0e35\u0e01\u0e17\u0e35 \nfor i in range(len(myList)):   \n  print(myList&#91;i])<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-009.png\" alt=\"\" class=\"wp-image-17057\" width=\"578\" height=\"287\" srcset=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-009.png 704w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-009-600x298.png 600w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-009-300x149.png 300w\" sizes=\"auto, (max-width: 578px) 100vw, 578px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E0%B8%A1%E0%B8%B2%E0%B8%94%E0%B8%B9%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%97%E0%B8%B3%E0%B8%87%E0%B8%B2%E0%B8%99%E0%B8%A3%E0%B9%88%E0%B8%A7%E0%B8%A1%E0%B8%81%E0%B8%B1%E0%B8%9A_string_%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B8%95%E0%B9%88%E0%B8%AD%E0%B8%84%E0%B8%A3%E0%B8%B1%E0%B8%9A\"><\/span><strong>\u0e21\u0e32\u0e14\u0e39\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e23\u0e48\u0e27\u0e21\u0e01\u0e31\u0e1a string \u0e01\u0e31\u0e19\u0e15\u0e48\u0e2d\u0e04\u0e23\u0e31\u0e1a<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>\u0e01\u0e48\u0e2d\u0e19\u0e2d\u0e37\u0e48\u0e19\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e23\u0e39\u0e49\u0e01\u0e48\u0e2d\u0e19\u0e27\u0e48\u0e32\u0e08\u0e23\u0e34\u0e07\u0e46 \u0e41\u0e25\u0e49\u0e27 String \u0e01\u0e47\u0e04\u0e37\u0e2d\u0e0a\u0e38\u0e14\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e1b\u0e23\u0e30\u0e01\u0e2d\u0e1a\u0e44\u0e1b\u0e14\u0e49\u0e27\u0e22\u0e2d\u0e31\u0e01\u0e02\u0e23\u0e30\u0e41\u0e15\u0e48\u0e25\u0e30\u0e15\u0e31\u0e27\u0e1b\u0e23\u0e30\u0e01\u0e2d\u0e1a\u0e01\u0e31\u0e19\u0e2d\u0e22\u0e39\u0e48 \u0e41\u0e25\u0e30\u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e2d\u0e49\u0e32\u0e07\u0e2d\u0e34\u0e07\u0e14\u0e49\u0e27\u0e22\u0e40\u0e25\u0e02 index \u0e44\u0e14\u0e49\u0e14\u0e49\u0e27\u0e22 \u0e04\u0e25\u0e49\u0e32\u0e22\u0e46 list \u0e40\u0e25\u0e22 \u0e40\u0e0a\u0e48\u0e19<\/p>\n\n\n\n<pre class=\"wp-block-code language-python\"><code>myString=\"ThepExcel\"\nprint(myString&#91;1]) #\u0e44\u0e14\u0e49 index1 \u0e04\u0e37\u0e2d\u0e15\u0e31\u0e27\u0e17\u0e35\u0e48 2\nprint(myString&#91;1:4]) #\u0e44\u0e14\u0e49\u0e15\u0e31\u0e49\u0e07\u0e41\u0e15\u0e48 index1 \u0e41\u0e15\u0e48\u0e44\u0e21\u0e48\u0e16\u0e36\u0e07 4 \u0e04\u0e37\u0e2d\u0e15\u0e31\u0e27\u0e17\u0e35\u0e48 2 \u0e16\u0e36\u0e07 4<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-011.png\" alt=\"\" class=\"wp-image-17063\" width=\"616\" height=\"173\" srcset=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-011.png 769w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-011-600x169.png 600w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-011-300x84.png 300w\" sizes=\"auto, (max-width: 616px) 100vw, 616px\" \/><\/figure>\n\n\n\n<p>\u0e17\u0e35\u0e19\u0e35\u0e49\u0e16\u0e49\u0e32\u0e40\u0e23\u0e32\u0e43\u0e0a\u0e49 for \u0e01\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 string \u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e22\u0e31\u0e07\u0e44\u0e07\u0e01\u0e31\u0e19\u0e19\u0e30? \u0e21\u0e32\u0e14\u0e39\u0e01\u0e31\u0e19<\/p>\n\n\n\n<pre class=\"wp-block-code language-python\"><code>myString=\"ThepExcel\"\nfor c in myString:\n  print(c)<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-012.png\" alt=\"\" class=\"wp-image-17064\" width=\"240\" height=\"286\" srcset=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-012.png 332w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-012-252x300.png 252w\" sizes=\"auto, (max-width: 240px) 100vw, 240px\" \/><\/figure>\n\n\n\n<p>\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e27\u0e48\u0e32\u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07\u0e2d\u0e31\u0e01\u0e02\u0e23\u0e30\u0e41\u0e15\u0e48\u0e25\u0e30\u0e15\u0e31\u0e27\u0e43\u0e19 string \u0e19\u0e31\u0e49\u0e19\u0e46 \u0e44\u0e14\u0e49\u0e40\u0e25\u0e22\u0e41\u0e1a\u0e1a\u0e07\u0e48\u0e32\u0e22\u0e46<\/p>\n\n\n\n<p>\u0e41\u0e15\u0e48\u0e16\u0e49\u0e32\u0e2d\u0e22\u0e32\u0e01\u0e43\u0e0a\u0e49\u0e40\u0e25\u0e02 index \u0e01\u0e47\u0e15\u0e49\u0e2d\u0e07\u0e43\u0e0a\u0e49 range+len \u0e40\u0e0a\u0e48\u0e19\u0e40\u0e04\u0e22<\/p>\n\n\n\n<pre class=\"wp-block-code language-python\"><code>myString=\"ThepExcel\"\nfor num in range(len(myString)):\n  print(myString&#91;num])<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-013.png\" alt=\"\" class=\"wp-image-17065\" width=\"366\" height=\"299\" srcset=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-013.png 480w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-013-300x246.png 300w\" sizes=\"auto, (max-width: 366px) 100vw, 366px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E0%B8%95%E0%B9%88%E0%B8%AD%E0%B9%84%E0%B8%9B%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%97%E0%B8%B3%E0%B8%87%E0%B8%B2%E0%B8%99%E0%B8%A3%E0%B9%88%E0%B8%A7%E0%B8%A1%E0%B8%81%E0%B8%B1%E0%B8%9A_dictionary_%E0%B8%84%E0%B8%A3%E0%B8%B1%E0%B8%9A\"><\/span><strong>\u0e15\u0e48\u0e2d\u0e44\u0e1b\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e23\u0e48\u0e27\u0e21\u0e01\u0e31\u0e1a dictionary \u0e04\u0e23\u0e31\u0e1a<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>\u0e16\u0e49\u0e32\u0e40\u0e23\u0e32\u0e43\u0e0a\u0e49 for \u0e01\u0e31\u0e1a dictionary \u0e40\u0e09\u0e22\u0e46 \u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 \u0e08\u0e30\u0e2b\u0e21\u0e32\u0e22\u0e16\u0e36\u0e07 key \u0e02\u0e2d\u0e07 dictionary \u0e19\u0e31\u0e49\u0e19\u0e46<\/p>\n\n\n\n<pre class=\"wp-block-code language-python\"><code>myDict = {\"FirstName\" : \"Sira\", \"LastName\" : \"Ekabut\", \"Age\" : 37, \"Height\" : 170 }\nfor x in myDict: #\u0e2d\u0e49\u0e32\u0e07 myDict \u0e40\u0e09\u0e22\u0e46 x \u0e08\u0e30\u0e2b\u0e21\u0e32\u0e22\u0e16\u0e36\u0e07 key \u0e02\u0e2d\u0e07 dictionary \u0e19\u0e31\u0e49\u0e19\u0e46\n  print(x)  #print key \u0e2d\u0e2d\u0e01\u0e21\u0e32\n\nprint('--------')\n\nfor x in myDict: #\u0e2d\u0e49\u0e32\u0e07 myDict \u0e40\u0e09\u0e22\u0e46 x \u0e08\u0e30\u0e2b\u0e21\u0e32\u0e22\u0e16\u0e36\u0e07 key \u0e02\u0e2d\u0e07 dictionary \u0e19\u0e31\u0e49\u0e19\u0e46\n  print(myDict&#91;x]) #print value \u0e2d\u0e2d\u0e01\u0e21\u0e32<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-014-1024x531.png\" alt=\"\" class=\"wp-image-17066\" width=\"772\" height=\"399\" srcset=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-014-1024x531.png 1024w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-014-600x311.png 600w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-014-300x155.png 300w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-014-768x398.png 768w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-014.png 1042w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><\/figure>\n\n\n\n<p>\u0e16\u0e49\u0e32\u0e2d\u0e22\u0e32\u0e01\u0e44\u0e14\u0e49\u0e17\u0e31\u0e49\u0e07 Key \u0e41\u0e25\u0e30 Value \u0e41\u0e1a\u0e1a\u0e07\u0e48\u0e32\u0e22\u0e46 \u0e43\u0e2b\u0e49\u0e43\u0e0a\u0e49\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 2 \u0e15\u0e31\u0e27\u0e21\u0e32\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32\u0e41\u0e1a\u0e1a\u0e19\u0e35\u0e49 (x,y) in myDict.items() (\u0e40\u0e23\u0e35\u0e22\u0e01\u0e27\u0e48\u0e32\u0e01\u0e32\u0e23 Unpack)<\/p>\n\n\n\n<pre class=\"wp-block-code language-python\"><code>myDict = {\"FirstName\" : \"Sira\", \"LastName\" : \"Ekabut\", \"Age\" : 37, \"Height\" : 170 }\nfor (x,y) in myDict.items(): #\u0e2d\u0e49\u0e32\u0e07 myDict.items() \u0e08\u0e30\u0e44\u0e14\u0e49\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 2 \u0e0a\u0e38\u0e14\n \u0e04\u0e37\u0e2d key \u0e01\u0e31\u0e1a value\n  print(x)  #print x \u0e2d\u0e2d\u0e01\u0e21\u0e32\n  print(y)  #print y \u0e2d\u0e2d\u0e01\u0e21\u0e32\n  print(x,y)  #print x \u0e04\u0e39\u0e48\u0e01\u0e31\u0e1a y \n  print('---')<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-015-1024x646.png\" alt=\"\" class=\"wp-image-17067\" width=\"760\" height=\"479\" srcset=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-015-1024x646.png 1024w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-015-600x378.png 600w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-015-300x189.png 300w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-015-768x484.png 768w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-015-272x170.png 272w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-015.png 1048w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E0%B9%80%E0%B8%87%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%99%E0%B9%84%E0%B8%82%E0%B9%80%E0%B8%9E%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%A7%E0%B8%99_Loop_%E0%B9%83%E0%B8%99_Python_While_Loop\"><\/span>\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e01\u0e32\u0e23\u0e27\u0e19 Loop \u0e43\u0e19 Python : While Loop<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e44\u0e1b\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e22\u0e46 \u0e43\u0e19\u0e02\u0e13\u0e30\u0e17\u0e35\u0e48\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e22\u0e31\u0e07\u0e40\u0e1b\u0e47\u0e19\u0e08\u0e23\u0e34\u0e07\u0e2d\u0e22\u0e39\u0e48<\/p>\n\n\n\n<pre class=\"wp-block-code language-python\"><code>i = 1  #\u0e43\u0e2b\u0e49 i \u0e40\u0e1b\u0e47\u0e19 1\nwhile i &lt;= 6:  #\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e43\u0e2b\u0e49\u0e17\u0e33\u0e43\u0e19\u0e02\u0e13\u0e30\u0e17\u0e35\u0e48 i \u0e44\u0e21\u0e48\u0e40\u0e01\u0e34\u0e19 6\n  print(\"\u0e40\u0e17\u0e1e\u0e21\u0e32\u0e01\" + str(i))\n  i = i+1  #\u0e40\u0e1e\u0e34\u0e48\u0e21 i \u0e01\u0e48\u0e2d\u0e19\u0e08\u0e30\u0e08\u0e1a action <\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-016.png\" alt=\"\" class=\"wp-image-17073\" width=\"505\" height=\"268\" srcset=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-016.png 664w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-016-600x319.png 600w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-016-300x159.png 300w\" sizes=\"auto, (max-width: 505px) 100vw, 505px\" \/><\/figure>\n\n\n\n<p>\u0e0b\u0e36\u0e48\u0e07\u0e41\u0e19\u0e48\u0e19\u0e2d\u0e19\u0e27\u0e48\u0e32\u0e08\u0e30\u0e40\u0e2d\u0e32\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e01\u0e31\u0e1a\u0e1e\u0e27\u0e01 list, dict, string \u0e2d\u0e30\u0e44\u0e23\u0e01\u0e47\u0e44\u0e14\u0e49 \u0e16\u0e49\u0e32\u0e2d\u0e22\u0e32\u0e01\u0e17\u0e33 \u0e41\u0e15\u0e48\u0e41\u0e19\u0e48\u0e19\u0e2d\u0e19\u0e27\u0e48\u0e32\u0e21\u0e31\u0e19\u0e22\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32\u0e43\u0e0a\u0e49 for \u0e41\u0e2b\u0e25\u0e30\u0e40\u0e19\u0e2d\u0e30<\/p>\n\n\n\n<pre class=\"wp-block-code language-python\"><code>myList = &#91;\"Eren\", \"Mikasa\", \"Armin\", \"Levi\"]\n\ni = 0  #\u0e43\u0e2b\u0e49 i \u0e40\u0e1b\u0e47\u0e19 0 \u0e43\u0e2b\u0e49\u0e2a\u0e2d\u0e14\u0e04\u0e25\u0e49\u0e2d\u0e07\u0e01\u0e31\u0e1a index\nwhile i &lt; len(myList):  #\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e43\u0e2b\u0e49\u0e17\u0e33\u0e43\u0e19\u0e02\u0e13\u0e30\u0e17\u0e35\u0e48 i \u0e44\u0e21\u0e48\u0e40\u0e01\u0e34\u0e19\u0e08\u0e33\u0e19\u0e27\u0e19\u0e15\u0e31\u0e27\u0e43\u0e19 Mylist\n  print(myList&#91;i])\n  i = i+1  #\u0e40\u0e1e\u0e34\u0e48\u0e21 i \u0e01\u0e48\u0e2d\u0e19\u0e08\u0e30\u0e08\u0e1a action <\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-017.png\" alt=\"\" class=\"wp-image-17074\" width=\"684\" height=\"263\" srcset=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-017.png 915w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-017-600x231.png 600w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-017-300x116.png 300w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-017-768x296.png 768w\" sizes=\"auto, (max-width: 684px) 100vw, 684px\" \/><\/figure>\n\n\n\n<p>\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e17\u0e35\u0e48\u0e04\u0e27\u0e23\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21\u0e40\u0e27\u0e25\u0e32\u0e43\u0e0a\u0e49 while loop \u0e19\u0e31\u0e49\u0e19\u0e21\u0e35\u0e2d\u0e35\u0e01 2 \u0e15\u0e31\u0e27\u0e2b\u0e25\u0e31\u0e01\u0e46 \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>break<\/strong> : \u0e40\u0e1b\u0e47\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e43\u0e2b\u0e49\u0e08\u0e1a\u0e01\u0e32\u0e23\u0e27\u0e19 loop \u0e44\u0e1b\u0e40\u0e25\u0e22<\/li><li><strong>continue<\/strong> : \u0e40\u0e1b\u0e47\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e43\u0e2b\u0e49\u0e17\u0e33\u0e15\u0e48\u0e2d\u0e43\u0e19 loop \u0e16\u0e31\u0e14\u0e44\u0e1b\u0e17\u0e31\u0e19\u0e17\u0e35<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code language-python\"><code>n = 0\nwhile n &lt; 10:\n    n=n+1\n    if n == 2:\n      continue   #\u0e44\u0e1b loop \u0e15\u0e48\u0e2d\u0e44\u0e1b\u0e40\u0e25\u0e22 \u0e42\u0e14\u0e22\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49 print\n    elif n == 7:\n      break    #\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01 loop \u0e44\u0e1b\u0e40\u0e25\u0e22 \u0e42\u0e14\u0e22\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49 print\n    print(n)\nprint('\u0e08\u0e1a Loop')<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-018.png\" alt=\"\" class=\"wp-image-17084\" width=\"468\" height=\"352\" srcset=\"https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-018.png 660w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-018-600x451.png 600w, https:\/\/www.thepexcel.com\/wp-content\/uploads\/2020\/11\/python-03-018-300x225.png 300w\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" \/><\/figure>\n\n\n\n<p>\u0e14\u0e39\u0e40\u0e2b\u0e21\u0e37\u0e2d\u0e19\u0e27\u0e48\u0e32 while \u0e08\u0e30\u0e40\u0e2b\u0e21\u0e32\u0e30\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23 monitor \u0e2a\u0e16\u0e32\u0e19\u0e01\u0e32\u0e23\u0e13\u0e4c\u0e1a\u0e32\u0e07\u0e2d\u0e22\u0e48\u0e32\u0e07 \u0e27\u0e48\u0e32\u0e16\u0e49\u0e32\u0e21\u0e31\u0e19\u0e22\u0e31\u0e07\u0e04\u0e07\u0e40\u0e1b\u0e47\u0e19\u0e08\u0e23\u0e34\u0e07\u0e2d\u0e22\u0e39\u0e48\u0e01\u0e47\u0e08\u0e30\u0e17\u0e33\u0e44\u0e1b\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e22\u0e46 \u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48\u0e01\u0e47\u0e2d\u0e32\u0e08\u0e01\u0e25\u0e31\u0e1a\u0e14\u0e49\u0e32\u0e19\u0e04\u0e37\u0e2d\u0e43\u0e0a\u0e49\u0e14\u0e31\u0e01\u0e08\u0e31\u0e1a\u0e2a\u0e16\u0e32\u0e19\u0e01\u0e32\u0e23\u0e13\u0e4c\u0e1a\u0e32\u0e07\u0e2d\u0e22\u0e48\u0e32\u0e07 \u0e27\u0e48\u0e32\u0e16\u0e49\u0e32\u0e40\u0e01\u0e34\u0e14\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c\u0e19\u0e31\u0e49\u0e19\u0e41\u0e25\u0e49\u0e27\u0e04\u0e48\u0e2d\u0e22\u0e43\u0e2b\u0e49\u0e44\u0e1b\u0e15\u0e48\u0e2d \u0e41\u0e1a\u0e1a\u0e19\u0e31\u0e49\u0e19\u0e01\u0e47\u0e44\u0e14\u0e49 \u0e40\u0e0a\u0e48\u0e19 \u0e2d\u0e2d\u0e01\u0e41\u0e1a\u0e1a\u0e40\u0e01\u0e21\u0e17\u0e32\u0e22\u0e43\u0e08\u0e43\u0e2b\u0e49\u0e17\u0e32\u0e22\u0e40\u0e25\u0e02\u0e08\u0e19\u0e01\u0e27\u0e48\u0e32\u0e08\u0e30\u0e16\u0e39\u0e01  \u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e19<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E0%B8%88%E0%B8%9A%E0%B8%95%E0%B8%AD%E0%B8%99\"><\/span>\u0e08\u0e1a\u0e15\u0e2d\u0e19<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u0e15\u0e2d\u0e19\u0e19\u0e35\u0e49\u0e40\u0e19\u0e37\u0e49\u0e2d\u0e2b\u0e32\u0e40\u0e23\u0e34\u0e48\u0e21\u0e21\u0e35\u0e04\u0e27\u0e32\u0e21\u0e0b\u0e31\u0e1a\u0e0b\u0e49\u0e2d\u0e19\u0e02\u0e36\u0e49\u0e19\u0e19\u0e34\u0e14\u0e19\u0e36\u0e07 (\u0e41\u0e15\u0e48\u0e04\u0e34\u0e14\u0e27\u0e48\u0e32\u0e22\u0e31\u0e07\u0e44\u0e21\u0e48\u0e22\u0e32\u0e01\u0e40\u0e01\u0e34\u0e19\u0e44\u0e1b) \u0e0b\u0e36\u0e48\u0e07\u0e17\u0e35\u0e48\u0e1c\u0e48\u0e32\u0e19\u0e21\u0e32\u0e40\u0e23\u0e32\u0e21\u0e35 action \u0e17\u0e35\u0e48\u0e17\u0e33\u0e44\u0e14\u0e49\u0e41\u0e04\u0e48\u0e01\u0e32\u0e23 print \u0e42\u0e07\u0e48\u0e46 \u0e2d\u0e22\u0e39\u0e48 \u0e40\u0e14\u0e35\u0e4b\u0e22\u0e27<a href=\"https:\/\/www.thepexcel.com\/python-excel-04-string-list\/\" class=\"rank-math-link\">\u0e15\u0e2d\u0e19\u0e15\u0e48\u0e2d \u0e44\u0e1b\u0e40\u0e23\u0e32\u0e08\u0e30\u0e21\u0e32\u0e40\u0e23\u0e35\u0e22\u0e19\u0e23\u0e39\u0e49\u0e01\u0e31\u0e19\u0e27\u0e48\u0e32 \u0e08\u0e30\u0e2a\u0e31\u0e48\u0e07\u0e17\u0e33\u0e2d\u0e30\u0e44\u0e23\u0e01\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e08\u0e4b\u0e07\u0e46 \u0e44\u0e14\u0e49\u0e1a\u0e49\u0e32\u0e07<\/a>\u0e40\u0e19\u0e2d\u0e30<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D_Series_Python\"><\/span>\u0e2a\u0e32\u0e23\u0e1a\u0e31\u0e0d Series Python<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<ul class=\"wp-block-latest-posts__list wp-block-latest-posts\"><\/ul><\/div><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e43\u0e19\u0e15\u0e2d\u0e19\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e19\u0e35\u0e49\u0e40\u0e23\u0e32\u0e44\u0e14\u0e49\u0e40\u0e23\u0e35\u0e22\u0e19\u0e23\u0e39\u0e49\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e02\u0e2d\u0e07\u0e20\u0e32\u0e29\u0e32 python \u0e44\u0e1b\u0e41\u0e25\u0e49\u0e27 \u0e43\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49\u0e40\u0e23\u0e32\u0e08\u0e30\u0e40\u0e23\u0e34\u0e48\u0e21\u0e44\u0e14\u0e49\u0e40\u0e2b\u0e47\u0e19\u0e1e\u0e25\u0e31\u0e07\u0e41\u0e25\u0e30\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e35\u0e48\u0e19\u0e48\u0e32\u0e2a\u0e19\u0e43\u0e08\u0e02\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e40\u0e02\u0e35\u0e22\u0e19\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e0b\u0e31\u0e01\u0e17\u0e35 (\u0e01\u0e48\u0e2d\u0e19\u0e08\u0e30\u0e44\u0e14\u0e49\u0e40\u0e2b\u0e47\u0e19\u0e1e\u0e25\u0e31\u0e07\u0e02\u0e31\u0e49\u0e19\u0e2a\u0e38\u0e14\u0e15\u0e2d\u0e19\u0e40\u0e23\u0e35\u0e22\u0e19\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e1e\u0e27\u0e01 Function \u0e41\u0e25\u0e30 Library \u0e15\u0e48\u0e32\u0e07\u0e46) \u0e19\u0e31\u0e48\u0e19\u0e01\u0e47\u0e04\u0e37\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e19\u0e01\u0e32\u0e23\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21 Flow \u0e01\u0e32\u0e23\u0e44\u0e2b\u0e25\u0e02\u0e2d\u0e07\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e43\u0e19 Program \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32 \u0e40\u0e0a\u0e48\u0e19 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e07\u0e32\u0e19\u0e17\u0e35\u0e48\u0e41\u0e15\u0e01\u0e15\u0e48\u0e32\u0e07\u0e01\u0e31\u0e19\u0e15\u0e32\u0e21\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e44\u0e14\u0e49 = \u0e41\u0e22\u0e01\u0e01\u0e32\u0e23\u0e15\u0e31\u0e14\u0e2a\u0e34\u0e19\u0e43\u0e08\u0e14\u0e49\u0e27\u0e22\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e01\u0e25\u0e38\u0e48\u0e21 if \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e07\u0e32\u0e19\u0e2d\u0e30\u0e44\u0e23\u0e0b\u0e49\u0e33\u0e46&#8230;<\/p>\n","protected":false},"author":1,"featured_media":17077,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[703],"tags":[578,579,580,700],"class_list":["post-17035","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming","tag-loop","tag-for","tag-while","tag-python"],"_links":{"self":[{"href":"https:\/\/www.thepexcel.com\/wp-json\/wp\/v2\/posts\/17035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thepexcel.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thepexcel.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thepexcel.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thepexcel.com\/wp-json\/wp\/v2\/comments?post=17035"}],"version-history":[{"count":1,"href":"https:\/\/www.thepexcel.com\/wp-json\/wp\/v2\/posts\/17035\/revisions"}],"predecessor-version":[{"id":31478,"href":"https:\/\/www.thepexcel.com\/wp-json\/wp\/v2\/posts\/17035\/revisions\/31478"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.thepexcel.com\/wp-json\/wp\/v2\/media\/17077"}],"wp:attachment":[{"href":"https:\/\/www.thepexcel.com\/wp-json\/wp\/v2\/media?parent=17035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thepexcel.com\/wp-json\/wp\/v2\/categories?post=17035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thepexcel.com\/wp-json\/wp\/v2\/tags?post=17035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}